mirror of https://github.com/ansible/ansible.git
added unsafe toggle to vars_prompt (#49219)
* added unsafe toggle to vars_prompt fixes #47534pull/51517/head
parent
4a0fceaa3b
commit
4ac0c23db6
@ -0,0 +1,2 @@
|
||||
minor_changes:
|
||||
- added 'unsafe' keyword to vars_prompt so users can signal 'template unsafe' content
|
@ -0,0 +1,20 @@
|
||||
- name: Test vars_prompt unsafe
|
||||
hosts: testhost
|
||||
become: no
|
||||
gather_facts: no
|
||||
vars:
|
||||
whole: INVALID
|
||||
vars_prompt:
|
||||
- name: input
|
||||
prompt: prompting for variable
|
||||
unsafe: true
|
||||
|
||||
tasks:
|
||||
- name:
|
||||
assert:
|
||||
that:
|
||||
- input != whole
|
||||
- input != 'INVALID'
|
||||
|
||||
- debug:
|
||||
var: input
|
Loading…
Reference in New Issue