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.
21 lines
339 B
YAML
21 lines
339 B
YAML
6 years ago
|
- 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
|