module not found when running playbook from awx

FATAL: The module ‘testmodule’ was not found in configured module paths

When I run the playbook from AWX with verbose=3, I see that it is using the following config file:

/var/lib/awx/projects/_7__ansible_repo/ansible.cfg as config file

I checked in the task container, and this is the correct ansible.cfg

the ansible.cfg contains:

library = library: …/library: …/…/library

I’m wondering why I can run playbooks from this repo locally but not from awx, does awx interpret this library path the wrong way?

It’s a little confusing because it is using the correct ansible.cfg, but I noticed this in the error log.

configured module search path = [u’/usr/lib/python2.7/site-packages/awx/plugins/library’]
ansible python module location = /usr/lib/python2.7/site-packages/ansible

my modules are located in the project_repo/library not in usr/lib/python2.7/site-packages so why does it say awx is looking there?