mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
19 lines
449 B
YAML
19 lines
449 B
YAML
---
|
|
- hosts: testhost
|
|
vars:
|
|
- vars_var: "vars_var"
|
|
- param_var: "BAD!"
|
|
- vars_files_var: "BAD!"
|
|
vars_files:
|
|
- vars/test_var_precedence.yml
|
|
roles:
|
|
- { role: test_var_precedence, param_var: "param_var" }
|
|
tasks:
|
|
- debug: var=extra_var
|
|
- debug: var=vars_var
|
|
- debug: var=vars_files_var
|
|
- assert:
|
|
that:
|
|
- 'extra_var == "extra_var"'
|
|
- 'vars_var == "vars_var"'
|
|
- 'vars_files_var == "vars_files_var"'
|