# unable to run the playbook python module is unable to call from playbook task | error is The offending line appears to be:       - name: minify\_json      minify\_json.py that is module i am calling in playbook

**URL:** <https://forum.ansible.com/t/unable-to-run-the-playbook-python-module-is-unable-to-call-from-playbook-task-error-is-the-offending-line-appears-to-be-name-minify-json-minify-json-py-that-is-module-i-am-calling-in-playbook/25448>\
**Category:** Ansible Project\
**Created:** [September 11, 2017, 7:37am UTC](https://forum.ansible.com/t/unable-to-run-the-playbook-python-module-is-unable-to-call-from-playbook-task-error-is-the-offending-line-appears-to-be-name-minify-json-minify-json-py-that-is-module-i-am-calling-in-playbook/25448 "2017-09-11T07:37:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Atul\_Sharma](https://avatars.discourse-cdn.com/v4/letter/a/bcef8e/32.png) [@Atul\_Sharma](https://forum.ansible.com/u/Atul_Sharma)\
**Post date:** [September 11, 2017, 7:37am UTC](https://forum.ansible.com/t/unable-to-run-the-playbook-python-module-is-unable-to-call-from-playbook-task-error-is-the-offending-line-appears-to-be-name-minify-json-minify-json-py-that-is-module-i-am-calling-in-playbook/25448/1 "2017-09-11T07:37:27Z")

</div>

Please suggest what is the best practice to include the any python module in ansible playbook and run the task . Without any error right now i am getting following error while running playbook

Following workaround already have been done.

i have directory structure where all library is exist in git repo inside same library i have my python module **minify\_json ,**

I am using " minify\_json " in my playbook

ansible.cfg already created in same library folder

Please see the following directory structure where files are placed.

path for minify\_json
