]> git.phdru.name Git - ansible.git/blobdiff - playbooks/fetch-push/fetch.yml
Feat(playbooks/fetch-push): Fetch/push a file
[ansible.git] / playbooks / fetch-push / fetch.yml
diff --git a/playbooks/fetch-push/fetch.yml b/playbooks/fetch-push/fetch.yml
new file mode 100644 (file)
index 0000000..37510a4
--- /dev/null
@@ -0,0 +1,9 @@
+- name: "Fetch {{ file }}"
+  hosts: "{{ hosts | default('all') }}"
+  gather_facts: false
+  tasks:
+    - name: Fetch files
+      fetch:
+        src: "{{ file }}"
+        dest: "{{ start_dir }}/{{ inventory_hostname }}/"
+        flat: yes