- 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: