我正试图用Ansible运行Vagrant时遇到问题.这是我在Windows 7上尝试运行vagrant up或vagrant provision终端(git bash)时遇到的错误:
ERROR! Unexpected Exception: Non-hexadecimal digit found
to see the full traceback, use -vvv
Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.
Run Code Online (Sandbox Code Playgroud)
这是因为Ansible-vault文件.vault_pass不是十六进制(它是一个字符串,不能更改).在我的同事的电脑上,它正常工作,但在我的电脑上却没有.
.vault_pass文件中有问题的字符串看起来像DBAKWeG3KOr3jKjBDbAz.
我想问题是Python的问题,但我不确定,我不知道如何解决它.
当我尝试添加时,-vvv这是重新开始:
ERROR! Unexpected Exception: Non-hexadecimal digit found
the full traceback was:
Traceback (most recent call last):
File "/usr/bin/ansible-playbook", line 92, in
exit_code = cli.run()
File "/usr/lib/python2.7/dist-packages/ansible/cli/playbook.py", line …