commit f5eb06c89ec6f762c50df02f2d85eb27d8016494
Author: Nicolas Chauvet <kwizart(a)gmail.com>
Date: Thu Nov 19 18:56:49 2020 +0100
sync sudo
roles/sudo/tasks/main.yml | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/roles/sudo/tasks/main.yml b/roles/sudo/tasks/main.yml
index 5d0b156..aede6ad 100644
--- a/roles/sudo/tasks/main.yml
+++ b/roles/sudo/tasks/main.yml
@@ -39,12 +39,11 @@
copy: src={{ item }} dest=/etc/sudoers.d/{{ item | basename | replace('.',
'_') }}
owner=root group=root mode=0600
with_first_found:
- - files:
- - "{{ sudoers }}"
- - "{{ private }}/files/sudo/{{ inventory_hostname }}-sudoers"
- - "{{ private }}/files/sudo/{{ ansible_hostname }}-sudoers"
- - "{{ private }}/files/sudo/{{ ansible_domain }}-sudoers"
- skip: true
+ - "{{ sudoers }}"
+ - "{{ private }}/files/sudo/{{ inventory_hostname }}-sudoers"
+ - "{{ private }}/files/sudo/{{ ansible_hostname }}-sudoers"
+ - "{{ private }}/files/sudo/{{ ansible_domain }}-sudoers"
+ - "{{ private }}/files/sudo/default"
tags:
- config
- sudo
Show replies by date