# Ansible custom module and custom Python library

**URL:** <https://forum.ansible.com/t/ansible-custom-module-and-custom-python-library/23608>\
**Category:** Ansible Project\
**Created:** [January 31, 2017, 10:53pm UTC](https://forum.ansible.com/t/ansible-custom-module-and-custom-python-library/23608 "2017-01-31T22:53:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Julien\_Buonocore](https://avatars.discourse-cdn.com/v4/letter/j/7c8e57/32.png) [@Julien\_Buonocore](https://forum.ansible.com/u/Julien_Buonocore)\
**Post date:** [January 31, 2017, 10:53pm UTC](https://forum.ansible.com/t/ansible-custom-module-and-custom-python-library/23608/1 "2017-01-31T22:53:08Z")

</div>

Hello,

As part of the deployment of an application specific to the business of my company, I developed an Ansible module in Python and I also developed a Python library for reuse and factorization the code. A bootable playbook installs the Python library on the managed hosts, and then the module that I developed in Python loads this library.

My question: is this way of organizing my developments in conformity with the philosophy of Ansible, especially on the fact that the modules are supposed to be standalone?

Do you think that can be a problem later on?

Thanks for your feedback,

Julien.

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [February 10, 2017, 2:34am UTC](https://forum.ansible.com/t/ansible-custom-module-and-custom-python-library/23608/2 "2017-02-10T02:34:48Z")

</div>

Current development (future 2.3) add a 'user defined module\_utils'  
feature that will allow you to ship the library with the module in the  
same way Ansible's module\_util currently works.
