如何将Vault的yml文件作为额外的var传递?

问题描述

找不到有关此的任何内容。我需要将拱形变量文件作为额外的变量传递,即:

ansible-pull -U <URL> -f -C master -d <ROLE_PATH> -i hosts --clean --vault-id <VAULT-ID/PW-FILE> -e @<VAULTED-VAR-FILE>

似乎无法找到已存储文件。

ansible 2.9.10



config file = /etc/ansible/ansible.cfg

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

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

  executable location = /bin/ansible

  python version = 2.7.5 (default,Apr  2 2020,13:16:51) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]

Using /etc/ansible/ansible.cfg as config file

Parsed localhost,inventory source with host_list plugin

ERROR! Attempting to decrypt but no vault secrets found

注意:如果我解密文件,它将运行。

有人遇到相同的问题或知道解决方案吗?

感谢和问候

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)