Password file

To use ansible-vault with a password file, you first need to create such a file. Simply echoing a password into a file can do this. Once complete, you can now reference this file when calling ansible-vault to create another encrypted file, as shown in the following screenshot:

Just as when being prompted for a password, the editor will open and data can be written.