# Using a bash script in github by the ansible playbook

**URL:** <https://forum.ansible.com/t/using-a-bash-script-in-github-by-the-ansible-playbook/30302>\
**Category:** Ansible Project\
**Created:** [May 10, 2019, 11:35am UTC](https://forum.ansible.com/t/using-a-bash-script-in-github-by-the-ansible-playbook/30302 "2019-05-10T11:35:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![michal.misiak](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@michal.misiak](https://forum.ansible.com/u/michal.misiak)\
**Post date:** [May 10, 2019, 11:35am UTC](https://forum.ansible.com/t/using-a-bash-script-in-github-by-the-ansible-playbook/30302/1 "2019-05-10T11:35:30Z")

</div>

Hi,

I have some bash scripts which I use in my ansible playbooks by script module. Now, I would like to move my bash scripts to github and still use them in my ansible playbooks, but directly from github. How can I do this? Which module do I have to use?

Best regards,  
Michał

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [May 10, 2019, 12:08pm UTC](https://forum.ansible.com/t/using-a-bash-script-in-github-by-the-ansible-playbook/30302/2 "2019-05-10T12:08:02Z")

</div>

The script module transfers a local script to a remote host and then  
executes it there.  
You could use the get\_url module to get a script from github, and then  
the command or shell module to run it on the remote node.

Dick
