Forum Discussion

David_Rowswell's avatar
David_Rowswell
Icon for Nimbostratus rankNimbostratus
Oct 18, 2017

Ansible Tower : the python suds and bigsuds modules are required

I have a trial install of Ansible Tower and I'm trying to write a very simple playbook that will retrieve some facts from our Lab F5.

 

This playbook works fine from the command line, but not from Ansible Tower. I suspect that it's something to do with the environment the Ansible Tower runs its job in, but I don't know how to fix the problem. Any ideas? .

 

4 Replies

  • 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...

  • 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
    
  • 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