File: shared.yml

package info (click to toggle)
scap-security-guide 0.1.78-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 114,600 kB
  • sloc: xml: 245,305; sh: 84,381; python: 33,093; makefile: 27
file content (21 lines) | stat: -rw-r--r-- 624 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# 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) }}}