Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Support vault_password_file via ansible.cfg #9

Closed
mdlnr opened this issue Jan 10, 2018 · 5 comments
Closed

Feature Request: Support vault_password_file via ansible.cfg #9

mdlnr opened this issue Jan 10, 2018 · 5 comments
Assignees

Comments

@mdlnr
Copy link

mdlnr commented Jan 10, 2018

When using an ansible.cfg file which contains a setting for a default vault_password_file the extension always asks for a password. Leaving this empty will result in an error.

  • The extension should check if the ansible.cfg contains a default setting for a vault_password_file
  • The file referenced in ansible.cfg can be defined with an absolute path or relative to the location of the ansible.cfg
  • The extension should not ask for a password when the setting is defined in ansible.cfg and the referenced file exists

Ref: http://docs.ansible.com/ansible/latest/intro_configuration.html#configuration-file

@codeflows
Copy link

@tjacoby I've written another ansible-vault plugin for viewing vaults that resolves the password in the way you've described. It does not support editing yet, so for that vscode-ansible-vault is the way to go :)

@dhoeric
Copy link
Owner

dhoeric commented Jan 21, 2018

@tjacoby That's absolutely is a nice feature but I haven't worked on this project for a while.
Need a bit of time to setup the env thingy. Will implement it very soon 👍

@dhoeric
Copy link
Owner

dhoeric commented Jan 25, 2018

@tjacoby I've published 0.1.0 on VSCode marketplace, could you test on it? Thanks!

@mdlnr
Copy link
Author

mdlnr commented Jan 29, 2018

Hi @dhoeric - Thats awesome. Thanks for adding this request. I tested it with my project and it works fine. 👍

@dhoeric
Copy link
Owner

dhoeric commented Jan 30, 2018

Good to hear this 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants