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.
20 lines
449 B
YAML
20 lines
449 B
YAML
11 years ago
|
---
|
||
|
- 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"'
|