在 Ansible Tower 中设置保管库密码 [英] Setting vault password in Ansible Tower

查看:28
本文介绍了在 Ansible Tower 中设置保管库密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 Ansible Vault 对存储敏感数据的文件进行加密.

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

这会提示用户提供 Ansible 保险库的密码.现在我如何通过 Ansible Tower 实现相同的功能,以便无需人工干预.我不希望这通过密码文件来完成,因为这是要求.任何建议都会有很大帮助.

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.

推荐答案

在 Ansible Tower 上,转到设置">凭据"并编辑您的机器凭据.有一个选项可以输入您的保管库密码.在 Ansible Tower 上运行剧本时,应自动输入保管库密码.您还可以选中在运行时询问?"框.如果您想在 playbook 运行时手动输入您的保管库密码.

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.

以下是此页面Vault 支持"下此功能的概述:https://www.ansible.com/blog/ansible-tower-148

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

这篇关于在 Ansible Tower 中设置保管库密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆