mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 21:00:22 -07:00
moving from with_ff to just ff (#44847)
This commit is contained in:
parent
f7ef06e849
commit
1ed57f1f64
3 changed files with 8 additions and 7 deletions
|
@ -85,11 +85,12 @@ EXAMPLES = """
|
|||
when: x == 0
|
||||
|
||||
- name: Load a variable file based on the OS type, or a default if not found. Using free-form to specify the file.
|
||||
include_vars: "{{ item }}"
|
||||
with_first_found:
|
||||
- "{{ ansible_distribution }}.yaml"
|
||||
- "{{ ansible_os_family }}.yaml"
|
||||
- default.yaml
|
||||
include_vars: "{{ lookup('first_found', possible_files) }}"
|
||||
vars:
|
||||
possible_files:
|
||||
- "{{ ansible_distribution }}.yaml"
|
||||
- "{{ ansible_os_family }}.yaml"
|
||||
- default.yaml
|
||||
|
||||
- name: Bare include (free-form)
|
||||
include_vars: myvars.yaml
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue