[greg@control ansible]$ vim /home/greg/ansible/secret.txt whenyouwishuponastar [greg@control ansible]$ chmod 400 /home/greg/ansible/secret.txt [greg@control ansible]$ vim ansible.cfg ... # If set, configures the path to the Vault password file as an alternative to # specifying --vault-password-file on the command line. vault_password_file = /home/greg/ansible/secret.txt ... [greg@control ansible]$ ansible-vault create /home/greg/ansible/locker.yml pw_developer: Imadev pw_manager: Imamgr [greg@control ansible]$ ansible-vault view locker.yml pw_developer: Imadev pw_manager: Imamgr