March 2019
Intermediate to advanced
412 pages
9h 49m
English
Once a file has been encrypted with ansible-vault, it cannot be directly edited. Opening the file in an editor would result in the encrypted data being shown. Making any changes to the file would damage the file and Ansible would be unable to read the contents correctly. We need a subcommand that will first decrypt the contents of a file, allow us to edit those contents, and then encrypt the new contents before saving it back to the file. Such a subcommand exists in edit, as shown in the following screenshot:

As we've already seen, our editor opens up with our content in plain text visible to us. All of our familiar ...
Read now
Unlock full access