]> git.phdru.name Git - ansible.git/blobdiff - playbooks/fetch-push/push.yaml
Feat(fetch-push): Allow plain directory
[ansible.git] / playbooks / fetch-push / push.yaml
index b2ad0e2062760f8e73d33a98fecb7670072a6683..35379b6f1533e381069ab48139e8e8b6e6b2eabe 100644 (file)
@@ -5,7 +5,7 @@
   tasks:
     - name: Copy files
       copy:
-        src: "{{ start_dir }}/{{ inventory_hostname }}/{{ item }}"
+        src: "{{ start_dir }}/{% if not plain_dir %}{{ inventory_hostname }}/{% endif %}{{ item }}"
         dest: "{{ dest_dir }}/"
         owner: "{{ owner | default('root') }}"
         group: "{{ group | default('root') }}"