# running a python script through Ansible

**URL:** <https://forum.ansible.com/t/running-a-python-script-through-ansible/21640>\
**Category:** Ansible Project\
**Created:** [June 2, 2016, 8:34am UTC](https://forum.ansible.com/t/running-a-python-script-through-ansible/21640 "2016-06-02T08:34:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shreya\_mittal](https://avatars.discourse-cdn.com/v4/letter/s/bbce88/32.png) [@shreya\_mittal](https://forum.ansible.com/u/shreya_mittal)\
**Post date:** [June 2, 2016, 8:34am UTC](https://forum.ansible.com/t/running-a-python-script-through-ansible/21640/1 "2016-06-02T08:34:20Z")

</div>

Hello Friends,  
I am a bit stuck in proceeding with ansible. I would like to be guided for how Can I run a python script using Ansible.  
As far as i understood we are supposed to make an ansible module and then use it in playbook. But i dnt understand how to begin writing a module.

It will be really kind if anyone could guide me with that.

Thanking you

---

<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:** [June 2, 2016, 2:06pm UTC](https://forum.ansible.com/t/running-a-python-script-through-ansible/21640/2 "2016-06-02T14:06:14Z")

</div>

You CAN modify the script to be a module, but you don’t NEED to, you can also use the `script` module.
