To create an encrypted file, use the ‘ansible-vault create’
command and pass the filename.
$ ansible-vault create filename.yaml
You’ll be prompted to create a password and then confirm it
by re-typing it.
Ansible Playbook – Ansible Interview Questions – Edureka
Once your password is confirmed, a new file will be created
and will open an editing window. By default, the editor for
Ansible Vault is vi.
You can add data, save and exit.
Ansible Playbook – Ansible Interview Questions – Edureka
This is your encrypted file:
Ansible Playbook – Ansible Interview Questions – Edureka