You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I'm certain that I'm doing something wrong...
I'm using Molecule V2 to run on one of my roles inside my playbook. This particular role calls into vault to obtain a value. My issue is that I'm getting a cryptic python error and I'm stuck on where to debug the issue.
In molecule you can create a config file where you can customize certain configs such as a mock up ansible.cfg for example my molecule.yml file looks like this:
Now if I do not set the lookup_plugin line above then I get an error that the playbook can't find vault... so I know ansible is able to find the plugin, however I'm getting this error when I run the converge command which is equivalent to running the playbook on just this role:
TASK [common : Obtain from vault the private ssh key for user ansible] *********
task path: /Users/snoby/work/Official/tropo-ops-proxy-ansible/roles/common/tasks/main.yml:36
fatal: [instance]: FAILED! => {
"msg": "An unhandled exception occurred while running the lookup plugin 'vault'. Error was a <type 'exceptions.AttributeError'>, original message: 'exceptions.AttributeError' object has no attribute 'code'"
}
It seems like something can't dereference in the path where the code is for the plugin. Any suggestions?
The text was updated successfully, but these errors were encountered:
One additional factoid which may simplify the test here as well. I tried to just run the whole playbook with the vault lookup plugin and I was returned with the same result of:
TASK [common : Obtain from vault the private ssh key for user ansible] *********************************************************************
fatal: [proxy1b.int.tropo.com]: FAILED! => {"msg": "An unhandled exception occurred while running the lookup plugin 'vault'. Error was a <type 'exceptions.AttributeError'>, original message: 'exceptions.AttributeError' object has no attribute 'code'"}
PLAY RECAP *********************************************************************************************************************************
So this has nothing to do with molecule. I install the plugin by making it a git submodule.
Hi,
I'm certain that I'm doing something wrong...
I'm using Molecule V2 to run on one of my roles inside my playbook. This particular role calls into vault to obtain a value. My issue is that I'm getting a cryptic python error and I'm stuck on where to debug the issue.
In molecule you can create a config file where you can customize certain configs such as a mock up ansible.cfg for example my molecule.yml file looks like this:
Now if I do not set the lookup_plugin line above then I get an error that the playbook can't find vault... so I know ansible is able to find the plugin, however I'm getting this error when I run the converge command which is equivalent to running the playbook on just this role:
It seems like something can't dereference in the path where the code is for the plugin. Any suggestions?
The text was updated successfully, but these errors were encountered: