X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=playbooks%2Ffetch-push%2Fpush.yaml;h=35379b6f1533e381069ab48139e8e8b6e6b2eabe;hb=73e35fe949641451c8c9fc6fd8d40a87cbb97319;hp=b2ad0e2062760f8e73d33a98fecb7670072a6683;hpb=3c5ede3e8a061c1817c429a5332dcf7bc76ec415;p=ansible.git diff --git a/playbooks/fetch-push/push.yaml b/playbooks/fetch-push/push.yaml index b2ad0e2..35379b6 100644 --- a/playbooks/fetch-push/push.yaml +++ b/playbooks/fetch-push/push.yaml @@ -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') }}"