ansible-playbook test.yml --vault-password-file path_to/vault_secret.sh or #Add to ansible.cfg: [defaults] vault_password_file=path_to/vault_secret.sh or ansible-playbook copy.yaml -i hosts.ini --ask-vault-pass