- hosts: lab gather_facts: false tasks: - name: "Ensure {{ item }} is present" file: path: "{{ item }}" state: file loop: - /tmp/File1.txt - /tmp/File2.txt - /tmp/File3.txt # vim: set ft=yaml sw=2 et: