You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/integration/targets/vars_files/runme.yml

23 lines
439 B
YAML

---
- hosts: testgroup
gather_facts: no
vars_files:
- "vars/common.yml"
-
- "vars/{{ foo }}.yml"
- "vars/defaults.yml"
tasks:
- import_tasks: validate.yml
- hosts: testgroup
gather_facts: no
vars:
_vars_files:
- 'vars/{{ foo }}.yml'
- 'vars/defaults.yml'
vars_files:
- "vars/common.yml"
- "{{ lookup('first_found', _vars_files) }}"
tasks:
- import_tasks: validate.yml