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:
Michel Blanc 2013-03-05 16:26:24 +01:00
parent e2c1b34dbb
commit d03954a24b

View file

@ -209,6 +209,16 @@ some other options, but otherwise works equivalently::
prompt: "Product release version"
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
`````````````````````````````````````