Having difficulties getting my playbook to run successfully using password 
encrypted by ansible-vault.  Running on RHEL 7.9.

$ ansible-playbook --version

ansible-playbook 2.9.18

  config file = /home/CGE/sa_cge_sm/projects/tavs-patching/ansible.cfg

  configured module search path = 
[u'/home/CGE/sa_cge_sm/.ansible/plugins/modules', 
u'/usr/share/ansible/plugins/modules']

  ansible python module location = /usr/lib/python2.7/site-packages/ansible

  executable location = /bin/ansible-playbook

  python version = 2.7.5 (default, Aug 13 2020, 02:51:10) [GCC 4.8.5 
20150623 (Red Hat 4.8.5-39)]

Created user.yml via ansible-vault:
$ ansible-vault create user.yml

New Vault password: <password entered>

Confirm New Vault password:  <password entered>

sent into vi, and entered password.  Saved file.  It appears the encryption 
is performed properly

]$ cat user.yml

$ANSIBLE_VAULT;1.1;AES256

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Possibly user-error here (relatively new to ansible).   When I run playbook:

$ ansible-playbook redhatpatching.yml -i dfwtesting.yml -l dfwtesting -f 5 
-u sa_cge_sm --vault-password-file ./user.yml -k

SSH password: 

[WARNING]: Error in vault password file loading (default): A vault password 
must be specified to decrypt data

ERROR! A vault password must be specified to decrypt data


Isn't ansible-vault designed to not require a password to be entered?  


Thanks!


-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/0522d4db-06c7-427e-8a1f-4bed98074a85n%40googlegroups.com.

Reply via email to