You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/samples/with_first_found.yml

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