hello,
I can’t edit my vault.yml file with ansible-vault, like :
ansible-vault edit group_vars/all/vault.yml
,
I can’t enter my code correctly yml
Regards
What $EDITOR
do you have set? What does this return?
echo "${EDITOR}"
Do you get an error message?
What do you mean by that?
i mean that editor is vi , and i don’t know, how to use it
Regards
echo “${EDITOR}” return nothing
If you set ${EDITOR}
in your shell then I think it’ll be used, for example try:
export EDITOR="/usr/bin/nano"
ansible-vault edit group_vars/all/vault.yml
1 Like
so , i found the solution:
i can type this : EDITOR=nano ansible-vault edit group_vars/all/vault.yml
modify this, in ansible.cfg :
[defaults]
vault_editor = nano
or add this , in ~/.bashrc
:
export EDITOR=nano
regards
1 Like