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

13 lines
256 B
YAML

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