sudo: also fix another with_first_found.
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
parent
1c564428ed
commit
c77f90e8aa
1 changed files with 4 additions and 6 deletions
|
@ -39,12 +39,10 @@
|
|||
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"
|
||||
errors: true
|
||||
- "{{ sudoers }}"
|
||||
- "{{ private }}/files/sudo/{{ inventory_hostname }}-sudoers"
|
||||
- "{{ private }}/files/sudo/{{ ansible_hostname }}-sudoers"
|
||||
- "{{ private }}/files/sudo/{{ ansible_domain }}-sudoers"
|
||||
tags:
|
||||
- config
|
||||
- sudo
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue