简体   繁体   English

当我尝试对ansible-vault文件进行git-log记录时,我一直收到密码提示

[英]I keep getting a password prompt when I try to git-log an ansible-vault file

I followed the instruction here: 我按照这里的指示进行:

How to diff ansible vault changes? 如何区分可变的保管库更改?

but I keep getting a prompt to put in the ansible-vault password. 但我不断收到提示,要求输入ansible-vault密码。

This is the command I run that prompts for the vault password: 这是我运行的提示输入保险库密码的命令:

git log -p staging.yml git log -p staging.yml

What am I doing wrong? 我究竟做错了什么? I tried putting in the the pager as cat and less like the comments show and it still prompts for the vault password...can someone tell me what I am doing wrong? 我试着把寻呼机当作猫放进去,不像注释显示那样,它仍然提示输入保管库密码……有人可以告诉我我在做什么错吗? I am using mac os x sierra... 我正在使用Mac OS X Sierra ...

You have to set vault_password_file config option or ANSIBLE_VAULT_PASSWORD_FILE environment variable to point to your vault password file. 您必须设置vault_password_file配置选项或ANSIBLE_VAULT_PASSWORD_FILE环境变量以指向您的Vault密码文件。

In case of answer you linked to, it should be: 如果您链接的答案是:

vault_password_file = .vault_password

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM