X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=playbooks%2Ffetch-push%2Ffetch.yaml;h=59214cb00aaf39128c3643df9d407bd7423832c6;hb=c51e90abc47b9324a9731a54823bd30597b79a17;hp=b2f20c862425215a7a9ae49fd56ef65a8646e538;hpb=3c5ede3e8a061c1817c429a5332dcf7bc76ec415;p=ansible.git diff --git a/playbooks/fetch-push/fetch.yaml b/playbooks/fetch-push/fetch.yaml index b2f20c8..59214cb 100644 --- a/playbooks/fetch-push/fetch.yaml +++ b/playbooks/fetch-push/fetch.yaml @@ -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(',') }}"