# Import/include ansible module

**URL:** <https://forum.ansible.com/t/import-include-ansible-module/29165>\
**Category:** Ansible Project\
**Created:** [November 30, 2018, 7:40pm UTC](https://forum.ansible.com/t/import-include-ansible-module/29165 "2018-11-30T19:40:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kash](https://avatars.discourse-cdn.com/v4/letter/k/7ab992/32.png) [@Kash](https://forum.ansible.com/u/Kash)\
**Post date:** [November 30, 2018, 7:40pm UTC](https://forum.ansible.com/t/import-include-ansible-module/29165/1 "2018-11-30T19:40:57Z")

</div>

How can I import or include a module in my yaml file that I have downloaded at a different (custom) location than

/usr/lib/python2.7/site-packages

Thanks

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [November 30, 2018, 7:46pm UTC](https://forum.ansible.com/t/import-include-ansible-module/29165/2 "2018-11-30T19:46:00Z")

</div>

[https://docs.ansible.com/ansible/2.7/user\_guide/playbooks\_reuse\_roles.html#embedding-modules-and-plugins-in-roles](https://docs.ansible.com/ansible/2.7/user_guide/playbooks_reuse_roles.html#embedding-modules-and-plugins-in-roles)

---

<div class="post-metadata">

**Author:** ![Kash](https://avatars.discourse-cdn.com/v4/letter/k/7ab992/32.png) [@Kash](https://forum.ansible.com/u/Kash)\
**Post date:** [December 3, 2018, 12:20pm UTC](https://forum.ansible.com/t/import-include-ansible-module/29165/3 "2018-12-03T12:20:23Z")

</div>

I have the python package downloaded in the virtual environment and am trying to use its ansible module in my playbook, no luck yet.

Location for the package - /var/lib/awx/venv/ansible/lib/…

In the playbook -  
—hosts: localhost  
tasks:

- name: Job list  
tower\_job\_list:  
status:  
…

But it keeps failing.
