Create a new encrypted vault file with a prompt for a password

ansible-vault

  • Encrypts & decrypts values, data structures and files within Ansible projects.
    More information: <https://docs.ansible.com/ansible/latest/user_guide/vault.html#id17>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

ansible-vault create {{vault_file}}

click the source code to copy install ansible-vault on any operating system with command-not-found.com