Merge pull request #14623 from kustodian/update-doc-with-ansible-vault-password-file

Adds ANSIBLE_VAULT_PASSWORD_FILE to the documentation site
This commit is contained in:
Brian Coca 2016-02-23 09:34:08 -05:00
commit 877c8c76ff

View file

@ -104,6 +104,9 @@ Alternatively, passwords can be specified with a file or a script, the script ve
The password should be a string stored as a single line in the file.
.. note::
You can also set ``ANSIBLE_VAULT_PASSWORD_FILE`` environment variable, e.g. ``ANSIBLE_VAULT_PASSWORD_FILE=~/.vault_pass.txt`` and Ansible will automatically search for the password in that file.
If you are using a script instead of a flat file, ensure that it is marked as executable, and that the password is printed to standard output. If your script needs to prompt for data, prompts can be sent to standard error.
This is something you may wish to do if using Ansible from a continuous integration system like Jenkins.