moving from with_ff to just ff (#44847)

This commit is contained in:
Brian Coca 2018-09-12 15:35:04 -04:00 committed by ansibot
commit 1ed57f1f64
3 changed files with 8 additions and 7 deletions

View file

@ -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