]> git.phdru.name Git - ansible.git/blobdiff - playbooks/fetch-push/push.yml
Feat(playbooks/fetch-push): Fetch/push a list of files
[ansible.git] / playbooks / fetch-push / push.yml
index 247ac7496bb701cd07d2aed4571ea89c4f5435f9..1965adccf27fcec29b6800b916f21c263366ba0b 100644 (file)
@@ -1,12 +1,13 @@
-- name: "Push {{ file }}"
+- name: "Push files"
   hosts: "{{ hosts | default('all') }}"
   become: yes
   gather_facts: false
   tasks:
     - name: Copy files
       copy:
-        src: "{{ start_dir }}/{{ inventory_hostname }}/{{ file }}"
+        src: "{{ start_dir }}/{{ inventory_hostname }}/{{ item }}"
         dest: "{{ dest_dir }}"
         owner: "{{ owner | default('root') }}"
         group: "{{ group | default('root') }}"
         mode: "{{ mode | default('0644') }}"
+      loop: "{{ files.split(',') }}"