ansible/v2/samples/with_first_found.yml

11 lines
189 B
YAML
Raw Normal View History

2015-01-09 15:37:31 +00:00
- hosts: localhost
connection: local
gather_facts: no
tasks:
- debug: msg="file is {{item}}"
with_first_found:
- /etc/foo
- /etc/bar
- /etc/passwd
- /etc/shadow