# platform = multi_platform_fedora,multi_platform_rhel,multi_platform_sle
# reboot = false
# strategy = restrict
# complexity = low
# disruption = low

- name: Create /tmp/tmp-inst directory
  ansible.builtin.file:
    path: /tmp/tmp-inst
    state: directory
    mode: '000'
    seuser: system_u
    serole: object_r
    setype: tmp_t

{{{ ansible_lineinfile(
  msg="Make changes to /etc/security/namespace.conf",
  path="/etc/security/namespace.conf",
  regex="^\s*/tmp\s+/tmp/tmp-inst/\s+level\s+root,adm$",
  insensitive=false,
  new_line="/tmp     /tmp/tmp-inst/        level      root,adm", rule_title=rule_title) }}}
