Add to Favourites
To login click here

Ansible provides users with a feature called “vault” which allows them to encrypt sensitive data such as passwords, API keys, and other credentials used in their playbooks and roles. To create a vault, users can use the ansible-vault command line tool which includes subcommands such as edit, encrypt, and decrypt. Once a vault is created, the include_vars module or the vars_prompt module can be used to prompt the user for the password, and the vault lookup plugin can be used to access the encrypted variables in the playbook or role.