]> git.phdru.name Git - ansible.git/blobdiff - playbooks/fetch-push/fetch.yml
Feat(playbooks/fetch-push): Fetch/push a list of files
[ansible.git] / playbooks / fetch-push / fetch.yml
index 37510a48052a7c4ac41b4e33221883b7aaa7eb06..b2f20c862425215a7a9ae49fd56ef65a8646e538 100644 (file)
@@ -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(',') }}"