From d24a9b27135817fc91d3ad0eb5874d7b4c3a7b38 Mon Sep 17 00:00:00 2001 From: Ethan Paul Date: Sat, 6 Nov 2021 01:16:05 -0400 Subject: [PATCH] Fix deletion of old sudoers files --- roles/server/tasks/sudoers.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/server/tasks/sudoers.yaml b/roles/server/tasks/sudoers.yaml index 16e13c2..d2539c9 100644 --- a/roles/server/tasks/sudoers.yaml +++ b/roles/server/tasks/sudoers.yaml @@ -25,6 +25,6 @@ ansible.builtin.file: path: /etc/sudoers.d/{{ item.strip() }} state: absent - loop: "{{ _sudoers_files_raw.stdout.split(' ') }}" + loop: "{{ _sudoers_files_raw.stdout_lines }}" loop_control: label: "/etc/sudoers.d/{{ item.strip() }}"