小编bri*_*urg的帖子

ansible 1.6>在with_items循环中使用with_first_found?

是否可以with_first_foundwith_items循环中使用,例如:

- 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
Run Code Online (Sandbox Code Playgroud)

似乎无法使其正常使用with_nested.

ansible ansible-playbook

7
推荐指数
1
解决办法
2332
查看次数

标签 统计

ansible ×1

ansible-playbook ×1