Let's try to get only the basename

This commit is contained in:
Pierre-Yves Chibon 2015-01-29 11:15:07 +01:00
parent 4e4b955307
commit 64fbbd4b1c

View file

@ -23,7 +23,7 @@
# This will move a /etc/sudoers.d/ file in place
#
- name: setup /etc/sudoers.d/sudoer file for client use
action: copy src={{ item }} dest=/etc/sudoers.d/{{ item |replace('.', '_') }}
action: copy src={{ item }} dest=/etc/sudoers.d/{{ item.basename |replace('.', '_') }}
owner=root group=root mode=0600
with_first_found:
- files: