Setting vault password in Ansible Tower

泄露秘密 提交于 2020-01-14 19:04:22

问题


I have used Ansible Vault to encrypt a file in which I have stored sensitive data.

In my orchestration script below command is mentioned to run the playbook.

ansible-playbook -i hosts -vvv Playbook.yml --ask-vault-pass

This prompts user to provide password for Ansible vault. Now how can I achieve the same through Ansible Tower so that no manual intervention. I do not want this to done through password file as it is the requirement. Any suggestion would be great help.


回答1:


On Ansible Tower, go to Settings > Credentials and edit your Machine Credentials. There is an option to enter your vault password. When you run the playbook on Ansible Tower, the vault password should automatically be entered. You can also check the box "Ask at runtime?" if you want to manually enter your vault password when the playbook is running.

Here is an overview of this functionality under "Vault Support" of this page: https://www.ansible.com/blog/ansible-tower-148



来源:https://stackoverflow.com/questions/46156070/setting-vault-password-in-ansible-tower

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!