]> git.phdru.name Git - ansible.git/blobdiff - playbooks/fetch-push/fetch.yaml
Feat(fetch-push): Allow plain directory
[ansible.git] / playbooks / fetch-push / fetch.yaml
index b2f20c862425215a7a9ae49fd56ef65a8646e538..59214cb00aaf39128c3643df9d407bd7423832c6 100644 (file)
@@ -5,6 +5,6 @@
     - name: Fetch files
       fetch:
         src: "{{ item }}"
-        dest: "{{ start_dir }}/{{ inventory_hostname }}/"
+        dest: "{{ start_dir }}/{% if not plain_dir %}{{ inventory_hostname }}/{% endif %}"
         flat: yes
       loop: "{{ files.split(',') }}"