#66 5.6.5 regex improvment

Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
Mark Bolwell 2023-06-28 10:49:55 +01:00
parent 4004b1b4c3
commit ddec58c419
No known key found for this signature in database
GPG key ID: 1DE02A772D0908F9

View file

@ -100,7 +100,7 @@
- name: "5.6.5 | PATCH | Ensure default user umask is 027 or more restrictive | Set umask for /etc/profile"
ansible.builtin.replace:
path: /etc/profile
regexp: '^(?i)(\s+UMASK|UMASK)\s0[0-2][0-6]'
regexp: '(?i)(umask)\s0[0-2][0-6]'
replace: '\1 027'
when:
- rhel9cis_rule_5_6_5