How to use 'skip: true' with 'with_first_found'?

自作多情 提交于 2019-11-29 12:13:58

with_first_found has a lot of parameters variations.
Take a look at first_found.py – there are some examples in the beginning of the file.

Answering your question:

- include: "{{ prerequisites_file }}"
  with_first_found:
    - files:
        - "prerequisites-{{ ansible_distribution }}.yml"
        - "prerequisites-{{ ansible_os_family }}.yml"
      skip: true
  loop_control:
    loop_var: prerequisites_file
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!