Forum Discussion
4 Replies
- David_RowswellNimbostratus
Further information that could be of use:
If I run this playbook while signed on as root in the CLI, it runs fine. If I run it from Ansible Tower I see the error message:
"msg": "the python suds and bigsuds modules are required"
I get the same error message if I run the playbook while becoming the user awx (which I guess Ansible Tower runs as?):
ansible-playbook f5-facts.yml -become=true --become-user=awx -vvv
So awx either can't find the python modules or does not have permission to access them...
- David_RowswellNimbostratus
James:
Thanks for pointing these out - sad to say, I had already investigated these links with no success.
However, I have found and fixed the problem! The python modules suds and bigsuds had been installed without read/execute rights for anybody but root. I don't know how that happened, but changing the module permissions so they become publicly readable did the trick, and I can now run these playbooks through Ansible Tower.
To be specific: I added global read rights to suds, bigsuds and f5-sdk in the /usr/lib/python2.7/site-packages directory.
chmod -R 755 f5* chmod -R 755 suds chmod -R 755 bigsuds
- David_RowswellNimbostratus
The python modules suds and bigsuds had been installed without read/execute rights for anybody but root. Changing the module permissions so they became publicly readable did the trick.
To be specific:
I added global read rights to suds, bigsuds and f5-sdk in the /usr/lib/python2.7/site-packages directory.
chmod -R 755 f5* chmod -R 755 suds chmod -R 755 bigsuds