Adds ANSIBLE_VAULT_PASSWORD_FILE to the documentation site

This commit is contained in:
Strahinja Kustudić 2016-02-23 14:38:47 +01:00
parent 078ebb0dec
commit 28b4f2a595

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. 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. 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. This is something you may wish to do if using Ansible from a continuous integration system like Jenkins.