From 2a8bc27dab6b3ebd9eb69e0b84f96570436c1752 Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Thu, 25 Jul 2024 17:35:57 -0400 Subject: [PATCH] add vault password file example (#1696) (#1721) * add vault password file example * remove duplicate word in vault password file example Co-authored-by: Sandra McCann --------- Co-authored-by: Sandra McCann (cherry picked from commit 9dfa018075c7fde2d78cdf2cd496931c1a365ada) Co-authored-by: ignyx --- docs/docsite/rst/vault_guide/vault_managing_passwords.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/docsite/rst/vault_guide/vault_managing_passwords.rst b/docs/docsite/rst/vault_guide/vault_managing_passwords.rst index e83eecf1c29..4a685f54639 100644 --- a/docs/docsite/rst/vault_guide/vault_managing_passwords.rst +++ b/docs/docsite/rst/vault_guide/vault_managing_passwords.rst @@ -73,6 +73,12 @@ Storing passwords in files To store a vault password in a file, enter the password as a string on a single line in the file. Make sure the permissions on the file are appropriate. Do not add password files to source control. +When you run a playbook that uses a vault password stored in a file, specify the file within the ``--vault-password-file`` flag. For example: + +.. code-block:: bash + + ansible-playbook --extra-vars @secrets.enc --vault-password-file secrets.pass + .. _vault_password_client_scripts: Storing passwords in third-party tools with vault password client scripts