Fix deletion of old sudoers files
This commit is contained in:
parent
487e41c058
commit
d24a9b2713
@ -25,6 +25,6 @@
|
|||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: /etc/sudoers.d/{{ item.strip() }}
|
path: /etc/sudoers.d/{{ item.strip() }}
|
||||||
state: absent
|
state: absent
|
||||||
loop: "{{ _sudoers_files_raw.stdout.split(' ') }}"
|
loop: "{{ _sudoers_files_raw.stdout_lines }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "/etc/sudoers.d/{{ item.strip() }}"
|
label: "/etc/sudoers.d/{{ item.strip() }}"
|
||||||
|
Reference in New Issue
Block a user