mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
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
14 lines
243 B
YAML
14 lines
243 B
YAML
- name: Test vars_prompt hashing
|
|
hosts: testhost
|
|
become: no
|
|
gather_facts: no
|
|
|
|
vars_prompt:
|
|
- name: password
|
|
confirm: yes
|
|
encrypt: sha512_crypt
|
|
salt: 'jESIyad4F08hP3Ta'
|
|
|
|
tasks:
|
|
- debug:
|
|
var: password
|