ansible-vault-editor-idea-plugin
ansible-vault-editor-idea-plugin copied to clipboard
Possibility to add default password/file/script through IDEA action (not ANSIBLE_VAULT_PASSWORD_FILE env)
Mostly resolved with #161
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.
+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.