Management of those values is quite a pain however. It usually
includes manually copying the encrypted string to a new file, fix the
indentation, then running ansible-vault on the file.
Editing plain files is easy, editing encrypted files is also easy.
Is there maybe some (vi) plugin that lets you edit the inline
encrypted vars in a more user friendly way?
One solution to the inconvienince of changing the inline vault variable is to use prefix the vault variable with vault_ and store the actual secret data in a file. Then reference the vault variable with vault_xxx. This way when you can use ansible-vault edit/view etc but still make the variable searchable via grep(i.e. you get the benefit from both approaches)