ansible/test/integration/targets/vars_prompt/vars_prompt-3.yml
Sam Doran f73ac53e58 Only template values in vars_prompt rather than all vars (#39304) (#44082)
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)
2018-08-13 18:18:48 -07:00

17 lines
253 B
YAML

- name: Test vars_prompt confirm
hosts: testhost
become: no
gather_facts: no
vars_prompt:
- name: input
confirm: yes
tasks:
- name:
assert:
that:
- input == 'confirm me'
- debug:
var: input