[Ansible] vault ERROR! Unexpected Exception: Odd-length string

ansible-vault view environments/prod/credentials.yml

ERROR! Unexpected Exception: Odd-length string

Решение: В файле неправильный перевод строки. Проверяем это:

file environments/prod/credentials.yml
credentials.yml : ASCII text, with CRLF line terminators

Должно быть:
credentials.yml : ASCII text

Пересохраняем в любом редакторе или
find . -type f -exec dos2unix {} \;

[Ansible] приоритет переменных

role defaults
inventory vars
inventory group_vars
inventory host_vars
playbook group_vars
playbook host_vars
host facts
play vars
play vars_prompt
play vars_files
registered vars
set_facts
role and include vars
block vars (only for tasks in block)
task vars (only for the task)
extra vars (always win precedence)