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:
Francesco Trentini 2024-03-21 16:12:58 +01:00
parent 6eeae19517
commit 4d90fed61b
No known key found for this signature in database
GPG key ID: F6671CF68B529CCB

View file

@ -30,8 +30,8 @@
- name: "5.3.3 | PATCH | Ensure sudo log file exists"
ansible.builtin.lineinfile:
path: /etc/sudoers
regexp: '^Defaults logfile='
line: 'Defaults logfile="{{ rhel9cis_sudolog_location }}"'
regexp: '^Defaults logfile='
line: 'Defaults logfile={{ rhel9cis_sudolog_location }}'
validate: '/usr/sbin/visudo -cf %s'
when:
- rhel9cis_rule_5_3_3