]> git.phdru.name Git - ansible.git/blobdiff - playbooks/fetch-push/push.yml
Feat(playbooks/fetch-push): Fetch/push a file
[ansible.git] / playbooks / fetch-push / push.yml
diff --git a/playbooks/fetch-push/push.yml b/playbooks/fetch-push/push.yml
new file mode 100644 (file)
index 0000000..247ac74
--- /dev/null
@@ -0,0 +1,12 @@
+- name: "Push {{ file }}"
+  hosts: "{{ hosts | default('all') }}"
+  become: yes
+  gather_facts: false
+  tasks:
+    - name: Copy files
+      copy:
+        src: "{{ start_dir }}/{{ inventory_hostname }}/{{ file }}"
+        dest: "{{ dest_dir }}"
+        owner: "{{ owner | default('root') }}"
+        group: "{{ group | default('root') }}"
+        mode: "{{ mode | default('0644') }}"