ansible-labs/080.Loops/solution/solution.yml

14 lines
303 B
YAML

- hosts: lab
gather_facts: false
tasks:
- name: "Copy {{ item }} to all hosts"
copy:
src: "{{ item }}"
dest: /tmp/
loop:
- "{{ playbook_dir }}/File1.txt"
- "{{ playbook_dir }}/File2.txt"
- "{{ playbook_dir }}/File3.txt"
# vim: set ft=yaml sw=2 et: