mirror of
https://github.com/ansible-lockdown/RHEL9-CIS.git
synced 2025-12-27 15:33:06 +00:00
enhance regexp for "Ensure sudo log file exists" task
Signed-off-by: Francesco Trentini <francesco.trentini@ris.bz.it>
This commit is contained in:
parent
4d90fed61b
commit
fe6fca34c9
1 changed files with 1 additions and 1 deletions
|
|
@ -30,7 +30,7 @@
|
||||||
- name: "5.3.3 | PATCH | Ensure sudo log file exists"
|
- name: "5.3.3 | PATCH | Ensure sudo log file exists"
|
||||||
ansible.builtin.lineinfile:
|
ansible.builtin.lineinfile:
|
||||||
path: /etc/sudoers
|
path: /etc/sudoers
|
||||||
regexp: '^Defaults logfile='
|
regexp: '^Defaults\s+logfile='
|
||||||
line: 'Defaults logfile={{ rhel9cis_sudolog_location }}'
|
line: 'Defaults logfile={{ rhel9cis_sudolog_location }}'
|
||||||
validate: '/usr/sbin/visudo -cf %s'
|
validate: '/usr/sbin/visudo -cf %s'
|
||||||
when:
|
when:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue