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

Error retrieving data from vault #38

Closed njordr closed 7 years ago

njordr commented 7 years ago

Hi.

I just used your lookup plugin and it gives me this error: TASK [Create skit_automata user] **** fatal: [10.209.113.25]: FAILED! => {"failed": true, "msg": "An unhandled exception occurred while running the lookup plugin 'vault'. Error was a <type 'exceptions.AttributeError'>, original message: 'list' object has no attribute 'split'"}

environment vars: export VAULT_ADDR="https://127.0.0.1:8200/" export VAULT_TOKEN="a3a51462-2884-b579-d769-93e7dad2dd75" export ANSIBLE_HASHICORP_VAULT_USE_CACHE="no" export VAULT_CACERT="/etc/ssl/certs/vault.pem"

Any idea?

njordr commented 7 years ago

my fault, I use ansible 2.3 but write the lookup as ansible < 2