Skip to content

Commit

Permalink
add vault password file example (#1696) (#1721)
Browse files Browse the repository at this point in the history
* add vault password file example

* remove duplicate word in vault password file example

Co-authored-by: Sandra McCann <[email protected]>

---------

Co-authored-by: Sandra McCann <[email protected]>
(cherry picked from commit 9dfa018)

Co-authored-by: ignyx <[email protected]>
  • Loading branch information
patchback[bot] and ignyx authored Jul 25, 2024
1 parent cf34d75 commit 2a8bc27
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/docsite/rst/vault_guide/vault_managing_passwords.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2a8bc27

Please sign in to comment.