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

Ansible Vault: command not found #9

Open
swoodford opened this issue Nov 13, 2017 · 7 comments
Open

Ansible Vault: command not found #9

swoodford opened this issue Nov 13, 2017 · 7 comments

Comments

@swoodford
Copy link

Trying to encrypt, decrypt or view any vault results in this Sublime Text error:
/bin/sh: ansible-vault: command not found

image

No option to set the path to Ansible in Preferences, Package Settings, Ansible Vault.

Ansible Vault working normally from terminal command line.

which ansible
/usr/local/bin/ansible
ansible --version
ansible 2.3.0.0
  config file = 
  configured module search path = Default w/o overrides
  python version = 2.7.14 (default, Oct 18 2017, 12:03:25) [GCC 4.2.1 Compatible Apple LLVM 8.1.0 (clang-802.0.42)]
ansible-vault --version
ansible-vault 2.3.0.0
  config file = 
  configured module search path = Default w/o overrides
  python version = 2.7.14 (default, Oct 18 2017, 12:03:25) [GCC 4.2.1 Compatible Apple LLVM 8.1.0 (clang-802.0.42)]

macOS Sierra: 10.12.3 (16D32)
Ansible 2.3.0.0
Sublime Text 3 Build 3126

@GaboFDC
Copy link

GaboFDC commented Feb 21, 2018

I have the same issue, and this is strage, it was working right a few days ago and now I get this message

@adambullmer
Copy link
Owner

in the 1.2.0 release, the option to specify your ansible binary path has been added. Can you update and try to use the new option to see if that resolves your issue?

@swoodford
Copy link
Author

Seeing two new issues now:

When clicking "Sublime Text -> Preferences -> Package Settings -> Ansible Vault -> Settings":
image

When trying to run Ansible Vault Encrypt after entering Vault Password at the prompt and hitting enter:
image

@adambullmer
Copy link
Owner

adambullmer commented Mar 13, 2018

First issue is just some inconsistency in how local dev and installed packages align. Can get that fixed pretty quickly.

For the second issue, what version of ansible are you using? Still 2.3.0.0?

@adambullmer
Copy link
Owner

Hopefully this fixes the settings path bug: https://github.com/adambullmer/sublime_ansible_vault/releases/tag/1.3.1

@swoodford
Copy link
Author

I updated Ansible:

ansible --version
ansible 2.4.3.0

And updated the plugin to 1.3.1.

image

Settings issue fixed, now it will open but typing is not allowed in the settings file. I had to add it in the user settings file, maybe that is intentional?

image

image

Still seeing this error but now slightly longer:

image

@adambullmer
Copy link
Owner

The left side of the settings window is the package default, and is not editable. The right side is your user settings, and should be completely editable.

It looks like you're letting it prompt you for a password. I recommend you setup a password file and then configure the password_file option.

It looks like the error is related to needing 2 inputs into the terminal command being run in the background. I'll need to spend some time to figure out how to fix that.

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

No branches or pull requests

3 participants