Actually find the script file

Signed-off-by: Nils Philippsen <nils@redhat.com>
This commit is contained in:
Nils Philippsen 2021-03-24 15:24:05 +01:00
parent f710f4102a
commit 7bbc061b41

View file

@ -17,9 +17,10 @@
- name: Copy the script to the host - name: Copy the script to the host
copy: copy:
src: scripts/fix-home-fedora-ownerships.sh src: "{{ files }}/scripts/fix-home-fedora-ownerships.sh"
dest: /usr/local/sbin/fix-home-fedora-ownerships.sh dest: /usr/local/sbin/fix-home-fedora-ownerships.sh
mode: 0755 mode: 0755
changed_when: false
when: home_fedora_res.stat.isdir when: home_fedora_res.stat.isdir
- name: Fix ownership of home directories in /home/fedora - name: Fix ownership of home directories in /home/fedora
@ -35,4 +36,5 @@
file: file:
path: /usr/local/sbin/fix-home-fedora-ownerships.sh path: /usr/local/sbin/fix-home-fedora-ownerships.sh
state: absent state: absent
changed_when: false
when: home_fedora_res.stat.isdir when: home_fedora_res.stat.isdir