added unsafe toggle to vars_prompt (#49219)

* added unsafe toggle to vars_prompt

	fixes #47534
This commit is contained in:
Brian Coca 2019-01-30 15:01:13 -05:00 committed by GitHub
commit 4ac0c23db6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 51 additions and 10 deletions

View file

@ -89,6 +89,16 @@ Depending on your platform at most the following crypt schemes are supported:
- *sha256_crypt* - SHA-256 Crypt
- *sha512_crypt* - SHA-512 Crypt
.. versionadded:: 2.8
If you need to put in special characters (i.e `{%`) that might create templating errors, use the ``unsafe`` option::
vars_prompt:
- name: "my_password_with_wierd_chars"
prompt: "Enter password"
unsafe: yes
private: yes
.. seealso::
:doc:`playbooks`
@ -101,6 +111,3 @@ Depending on your platform at most the following crypt schemes are supported:
Have a question? Stop by the google group!
`irc.freenode.net <http://irc.freenode.net>`_
#ansible IRC chat channel