]> git.phdru.name Git - ansible.git/blob - playbooks/fetch-push/push.yml
Fix(fetch-push/push): `dest_dir` is always a directory
[ansible.git] / playbooks / fetch-push / push.yml
1 - name: "Push files"
2   hosts: "{{ hosts | default('all') }}"
3   become: yes
4   gather_facts: false
5   tasks:
6     - name: Copy files
7       copy:
8         src: "{{ start_dir }}/{{ inventory_hostname }}/{{ item }}"
9         dest: "{{ dest_dir }}/"
10         owner: "{{ owner | default('root') }}"
11         group: "{{ group | default('root') }}"
12         mode: "{{ mode | default('0644') }}"
13       loop: "{{ files.split(',') }}"