ansible/samples/with_first_found.yml
2015-05-03 21:47:26 -05:00

11 lines
189 B
YAML

- hosts: localhost
connection: local
gather_facts: no
tasks:
- debug: msg="file is {{item}}"
with_first_found:
- /etc/foo
- /etc/bar
- /etc/passwd
- /etc/shadow