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

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