I’ve installed Ansible Tower 3.5.1 on CentOs 7 EC2 Instance for our deployments. After Installtion I’ve set up some Jobs using Jobs Template, When I try to launch them I’m getting following error.
The vault password file /var/lib/awx/.vault_pass was not found
I’ve created .valut_pass.txt in the above directory and try to re-ran the Job it is failed, Then I try to update .vault_pass in home ./~ directory and re-ran the Job still it is failed. Also I made reference to .valut_pass in bash profile also by reference the path (ANSIBLE_VAULT_PASSWORD_FILE=~/.vault_pass.txt) still it failed when I try to run the job.
Also I tried to remove the reference(Just for testing) from ansible.cfg(User one, which is there in my Ansible Tower Set up) to see whether Job will run, Still it failed,
In all the above three instances it is failing with Same errors. I don’t understand how the come the Job fails even after I remove reference from ansible.cfg.
FYI,Whenever I made any changes, I’ve restarted the ansible-tower-service and tested it. I also checked /etc/ansible/ansible.cfg file also but there are no references to valut_pass in that file and also as per ansible documentation, If user ansible_cfg is there than that takes precedence so it should not be an issue, I guess.
Has any one of you faced similar error and able to resolve it? If so please let me know what’s the work around?
As I posted the query in Ansible-Project group, Got similar reply and advised me to post in this group so I did posted here.
Even as far as I know Tower uses same code base as AWX and we’ve basic version of Tower so would not be able to reach Red Hat Support on that plan and that is another reason why I posted in this group.
If you guys know any workaround, Please let me know.
If you are really using Ansible Tower, you should have access to Red Hat Support, and they are great to work with. I’m not sure why you would be running it on CentOS though.
If what you are using is identical enough to AWX, you should consider putting your vault password in a credential, instead of a file. If you’re trying to get rid of the reference to vault_pass in your project’s ansible.cfg, make sure you update it in the source and re-sync’d the project.
Thanks for your response. We are using Ansible Basic version, so there would be no support plan comes with it. Our plan is to use ansible tower for prod deployments going forward, to achieve that we need to have working version in test environment.
What do you mean by updating in source and re-sync the project? When I removed the reference for vault password, I’ve re-started the tower service, Do I need to re-create the Job in console?