summaryrefslogtreecommitdiff
path: root/v2/samples/with_first_found.yml
blob: e64b36cb503c5d3e1d780ea711b678e5cf8ca445 (plain)
1
2
3
4
5
6
7
8
9
10
- hosts: localhost
  connection: local
  gather_facts: no
  tasks:
  - debug: msg="file is {{item}}"
    with_first_found:
    - /etc/foo
    - /etc/bar
    - /etc/passwd
    - /etc/shadow