ipierre1 / ansible-vault-vscode

VS Code extension to encrypt and decrypt Ansible Vaulted files or inlines without Ansible and Python installed locally.
https://marketplace.visualstudio.com/items?itemName=ipierre1.ansible-vault-vscode
MIT License
3 stars 0 forks source link

Support ansible.cfg ~ and $HOME path expansions #107

Open jdratlif opened 2 months ago

jdratlif commented 2 months ago

Is your feature request related to a problem? Please describe.

In ansible.cfg, I can specify a vault file relative to my home directory using ~ or $HOME. But when I try to use the extension, it doesn't interpret these values and cannot encrypt/decrypt using the password files.

Sample ansible.cfg

[defaults]
  vault_identity_list = org1@$HOME/private/vault/org1.pw, org2@~/private/vault/org2.pw

Describe the solution you'd like

I would like to be able to use ~ or $HOME from the extension just like I can from the ansible cli.

Describe alternatives you've considered

I can specify the entire path, I'd just like to use path expansion so it works when I'm in a devcontainer or sharing the ansible.cfg with another user.

Additional context

N/A

github-actions[bot] commented 3 days ago

This issue has been labeled as stale due to inactivity. Reply to keep this issue open.