diff --git a/tasks/2fa_client.yml b/tasks/2fa_client.yml index 38b1741063..7ac56d900e 100644 --- a/tasks/2fa_client.yml +++ b/tasks/2fa_client.yml @@ -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