f73ac53e58
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.
Add tests for vars_prompt
(cherry picked from commit 6d38167d49
)
20 lines
327 B
YAML
20 lines
327 B
YAML
- name: Test vars_prompt custom variables in prompt
|
|
hosts: testhost
|
|
become: no
|
|
gather_facts: no
|
|
|
|
vars:
|
|
prompt_var: prompt from variable
|
|
|
|
vars_prompt:
|
|
- name: input
|
|
prompt: "{{ prompt_var }}"
|
|
|
|
tasks:
|
|
- name:
|
|
assert:
|
|
that:
|
|
- input == 'input'
|
|
|
|
- debug:
|
|
var: input
|