From 28b4f2a595bff7a1c3033a4e57c9a1c16e710097 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Strahinja=20Kustudi=C4=87?= Date: Tue, 23 Feb 2016 14:38:47 +0100 Subject: [PATCH] Adds ANSIBLE_VAULT_PASSWORD_FILE to the documentation site --- docsite/rst/playbooks_vault.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docsite/rst/playbooks_vault.rst b/docsite/rst/playbooks_vault.rst index 01836f796fd..f31d8fb9e91 100644 --- a/docsite/rst/playbooks_vault.rst +++ b/docsite/rst/playbooks_vault.rst @@ -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.