mirror of
https://github.com/ansible-lockdown/RHEL9-CIS.git
synced 2025-12-27 15:33:06 +00:00
remove quotes in sudoers file in order to pass openscap security scan
Signed-off-by: Francesco Trentini <francesco.trentini@ris.bz.it>
This commit is contained in:
parent
6eeae19517
commit
4d90fed61b
1 changed files with 2 additions and 2 deletions
|
|
@ -30,8 +30,8 @@
|
||||||
- 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 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:
|
||||||
- rhel9cis_rule_5_3_3
|
- rhel9cis_rule_5_3_3
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue