ansible/test/samples/with_first_found.yml

11 lines
189 B
YAML
Raw Normal View History

2015-01-09 16:37:31 +01: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