From 690037876648e515fdf1e9d6dd82c760b9bd0f72 Mon Sep 17 00:00:00 2001 From: CsilLAB Date: Tue, 21 May 2019 21:37:25 +0100 Subject: [PATCH] [WIP] Tip to see the content of a single encrypted var (#37887) * Tip to see the content of a single var encrypted with Ansible Vault --- docs/docsite/rst/user_guide/vault.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/docsite/rst/user_guide/vault.rst b/docs/docsite/rst/user_guide/vault.rst index f5ac6fa1368..55b374e2eec 100644 --- a/docs/docsite/rst/user_guide/vault.rst +++ b/docs/docsite/rst/user_guide/vault.rst @@ -279,6 +279,17 @@ Result:: See also :ref:`single_encrypted_variable` +After you added the encrypted value to a var file (vars.yml), you can see the original value using the debug module. + +.. code-block:: console + + ansible localhost -m debug -a var="new_user_password" -e "@vars.yml" --ask-vault-pass + Vault password: + + localhost | SUCCESS => { + "new_user_password": "hunter2" + } + .. _providing_vault_passwords: