Decrypting encrypted files

If at some point, the need to encrypt data files goes away, ansible-vault provides a subcommand that can be used to remove encryption for one or more encrypted files. This subcommand is (surprisingly) named decrypt, as shown in the following screenshot:

Once again, we have our familiar --vault-id options and then one or more file paths to decrypt. Let's decrypt the file we created earlier using our password file, as shown in the following screenshot:

In the next section, we will see how to execute Ansible-playbook with encrypted files.