jhaals / ansible-vault

ansible lookup plugin for secrets stored in Vault(by HashiCorp)
BSD 3-Clause "New" or "Revised" License
347 stars 65 forks source link

Better troubleshooting information when opening $HOME/.vault-token #36

Closed alvarl closed 7 years ago

alvarl commented 7 years ago

Currently, when running in an environment like Ansible Tower, it may be hard to understand the root cause of problems. Tower runs playbooks in a bubblewrap by default, which makes for some non-obvious problems when a file that definitely exists somewhy cannot be found. Also, right now any permission problems would be reported as a missing file.

This change adds more granular logging around searching for the token in $HOME/.vault-token file.