using with_first_found in a with_items loop?

65 views
Skip to first unread message

Brice Burgess

unread,
Mar 26, 2014, 1:09:02 AM3/26/14
to ansible...@googlegroups.com
Is it possible to use with_first_found in a with_items loop? Such as;

```
- template:
    dest=/foo/{{ item.name }}-{{ item.branch | default('master') }}
    src={{ item }}
  with_first_found:
    - {{ item.name }}-{{ item.branch | default('master') }}
    - {{ item.name }}.j2
    - apache_site.j2
  with_items: apache_sites
```

Can't seem to make it work using with_nested

Many thanks!






Reply all
Reply to author
Forward
0 new messages