X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=playbooks%2Ffetch-push%2Ffetch.yml;h=b2f20c862425215a7a9ae49fd56ef65a8646e538;hb=f2c8c102259ab6df18a51a1c486afbd5fb7fcde3;hp=37510a48052a7c4ac41b4e33221883b7aaa7eb06;hpb=31f44ba329b3dc6b0c04453aa411e1038521350c;p=ansible.git diff --git a/playbooks/fetch-push/fetch.yml b/playbooks/fetch-push/fetch.yml index 37510a4..b2f20c8 100644 --- a/playbooks/fetch-push/fetch.yml +++ b/playbooks/fetch-push/fetch.yml @@ -1,9 +1,10 @@ -- name: "Fetch {{ file }}" +- name: "Fetch files" hosts: "{{ hosts | default('all') }}" gather_facts: false tasks: - name: Fetch files fetch: - src: "{{ file }}" + src: "{{ item }}" dest: "{{ start_dir }}/{{ inventory_hostname }}/" flat: yes + loop: "{{ files.split(',') }}"