ansible/v2/samples/with_first_found.yml
2015-01-09 09:37:45 -06:00

10 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