Ansible AWX / Tower: ERROR! couldn’t resolve module/action ‘module’

Posted by

Last week i was struggling with the Ansible module paths and virtual environments in AWX.
My structure looks like this:

Had a couple issues with this setup.

Module not found in  sub-directories, using ansible.cfg to define the following:

Works great until you enable the fact_cache checkbox (issue 2).

Ansible.cfg ignored when using the ansible fact_cache.

This problem is solved in the newest AWX versions.
For older versions you can define a global library variable in the AWX -> Settings -> Jobs -> Extra environment variables.

Leave a Reply

Your email address will not be published. Required fields are marked *