6d38167d49
* Only template values in vars_prompt rather than all vars This allows the use of variables in vars_prompt fields but allows variables entered in the prompt to affect play vars rather than throwing an undefined error. Only post validate if there was a vars_prompt * Add tests for vars_prompt
15 lines
220 B
YAML
15 lines
220 B
YAML
- name: Basic vars_prompt test
|
|
hosts: testhost
|
|
become: no
|
|
gather_facts: no
|
|
|
|
vars_prompt:
|
|
- name: input
|
|
|
|
tasks:
|
|
- assert:
|
|
that:
|
|
- input == 'some input'
|
|
|
|
- debug:
|
|
var: input
|