Ansible-vault errors with “Odd-length string”

前端 未结 4 1218
生来不讨喜
生来不讨喜 2021-01-11 18:19

I\'m running Ansible 1.8.2. I have a vaulted file created on another system. On that system it works without any problems. However, when I run it on my local sy

4条回答
  •  鱼传尺愫
    2021-01-11 18:57

    Even with all these solutions, editing ansible vault files didn't work for me until I set the EDITOR environment variable (for whatever reason it was not set on my Linux distribution):

    export EDITOR="/usr/bin/vi"
    

    One way to figure out if this applies to you is to try to view vault files (with ansible-vault view command) and if view works fine but edit doesn't, then you need to set the EDITOR env variable to your favorite editor.

提交回复
热议问题