sadv1r / ansible-vault-editor-idea-plugin

Ansible Vault Editor IntelliJ Plugin with auto encryption/decryption
https://plugins.jetbrains.com/plugin/14278-ansible-vault-editor
MIT License
37 stars 5 forks source link

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

Open sadv1r opened 2 years ago

sadv1r commented 2 years ago

Mostly resolved with #161

dragetd commented 1 year ago

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:

This would pick up the password file in this case.

tshipenchko commented 4 months ago

+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.