ansible-vault-editor-idea-plugin icon indicating copy to clipboard operation
ansible-vault-editor-idea-plugin copied to clipboard

Possibility to add default password/file/script through IDEA action (not ANSIBLE_VAULT_PASSWORD_FILE env)

Open sadv1r opened this issue 3 years ago • 3 comments

sadv1r avatar Feb 19 '22 12:02 sadv1r

Mostly resolved with #161

sadv1r avatar Jul 26 '22 20:07 sadv1r

It searches the default paths for the Ansible config file. But I have a project opened with an ansible directory that has ansible.cfg with a configured password-file.

Would it be possible to attempt parsing the config also like this:

  • form the currently requested file, go recursively up until reaching the project (IDEA Module) root. In each directory look for an ansible.cfg and parse it relative from this directory.

This would pick up the password file in this case.

dragetd avatar May 30 '23 16:05 dragetd

+1 for @dragetd's idea. This would be a great addition.

Additionally, the vault_password_file parameter in the ansible.cfg file could contain a relative path. I believe this should be resolved relative to the directory where the ansible.cfg file is located.

tshipenchko avatar Apr 22 '24 10:04 tshipenchko