mirror of https://github.com/ansible/ansible.git
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.
23 lines
439 B
YAML
23 lines
439 B
YAML
2 years ago
|
---
|
||
|
- 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
|