And I obviously need to add the new filename suffix

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
Patrick Uiterwijk 2016-07-05 06:34:33 +00:00
parent e21a25c220
commit 39190faaa1

View file

@ -34,9 +34,9 @@
- name: /etc/pam.d/sudo
template: src={{ item }} dest=/etc/pam.d/sudo mode=0644
with_first_found:
- "{{ files }}/2fa/sudo.pam.{{ inventory_hostname }}"
- "{{ files }}/2fa/sudo.pam.{{ ansible_domain }}"
- "{{ files }}/2fa/sudo.pam"
- "{{ files }}/2fa/sudo.pam.{{ inventory_hostname }}.j2"
- "{{ files }}/2fa/sudo.pam.{{ ansible_domain }}.j2"
- "{{ files }}/2fa/sudo.pam.j2"
tags:
- config