mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Update playbooks2.rst
Added doc on encrypt capability of vars_prompt. Assuming the example in https://github.com/ansible/ansible/blob/devel/examples/playbooks/prompts.yml is still valid.
This commit is contained in:
parent
e2c1b34dbb
commit
d03954a24b
1 changed files with 10 additions and 0 deletions
|
@ -209,6 +209,16 @@ some other options, but otherwise works equivalently::
|
||||||
prompt: "Product release version"
|
prompt: "Product release version"
|
||||||
private: no
|
private: no
|
||||||
|
|
||||||
|
vars_prompt can also crypt the entered value so you can use it, for instance, with the user module to define a password::
|
||||||
|
|
||||||
|
vars_prompt:
|
||||||
|
- name: "my_password2"
|
||||||
|
prompt: "Enter password2"
|
||||||
|
private: yes
|
||||||
|
encrypt: "md5_crypt"
|
||||||
|
confirm: yes
|
||||||
|
salt_size: 7
|
||||||
|
salt: "foo"
|
||||||
|
|
||||||
Passing Variables On The Command Line
|
Passing Variables On The Command Line
|
||||||
`````````````````````````````````````
|
`````````````````````````````````````
|
||||||
|
|
Loading…
Reference in a new issue