# module not found when running playbook from awx

**URL:** <https://forum.ansible.com/t/module-not-found-when-running-playbook-from-awx/26353>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [December 20, 2017, 10:51pm UTC](https://forum.ansible.com/t/module-not-found-when-running-playbook-from-awx/26353 "2017-12-20T22:51:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ben\_Donnaloia](https://avatars.discourse-cdn.com/v4/letter/b/8e8cbc/32.png) [@Ben\_Donnaloia](https://forum.ansible.com/u/Ben_Donnaloia)\
**Post date:** [December 20, 2017, 10:51pm UTC](https://forum.ansible.com/t/module-not-found-when-running-playbook-from-awx/26353/1 "2017-12-20T22:51:16Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Ben\_Donnaloia](https://avatars.discourse-cdn.com/v4/letter/b/8e8cbc/32.png) [@Ben\_Donnaloia](https://forum.ansible.com/u/Ben_Donnaloia)\
**Post date:** [December 20, 2017, 10:55pm UTC](https://forum.ansible.com/t/module-not-found-when-running-playbook-from-awx/26353/2 "2017-12-20T22:55:12Z")

</div>

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?
