是否有可能在一个with_items
循环使用with_first_found
如:ansible 1.6>在with_items循环中使用with_first_found?
- 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
似乎无法使其工作使用with_nested
。
看起来毛茸茸的,什么是你想实现什么? – Rico