[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
This commit is contained in:
CsilLAB 2019-05-21 21:37:25 +01:00 committed by Alicia Cozine
parent cb9be4ddaf
commit 6900378766

View file

@ -279,6 +279,17 @@ Result::
See also :ref:`single_encrypted_variable` 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: .. _providing_vault_passwords: