# custom module and connection local and python dependencies

**URL:** <https://forum.ansible.com/t/custom-module-and-connection-local-and-python-dependencies/27749>\
**Category:** Ansible Developer\
**Created:** [June 8, 2018, 3:28pm UTC](https://forum.ansible.com/t/custom-module-and-connection-local-and-python-dependencies/27749 "2018-06-08T15:28:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hdulay](https://avatars.discourse-cdn.com/v4/letter/h/f9ae1b/32.png) [@hdulay](https://forum.ansible.com/u/hdulay)\
**Post date:** [June 8, 2018, 3:28pm UTC](https://forum.ansible.com/t/custom-module-and-connection-local-and-python-dependencies/27749/1 "2018-06-08T15:28:03Z")

</div>

Hello All;

Is it possible to execute a custom task locally by setting connection: local and be able to load its python-module dependencies? I’m trying to maximize usability.

I attempted to added my python modules to the PYTHONPATH but the custom-module doesn’t not complain about loading my python-modules but does return a MODULE FAILURE.

Thanks
