# Script module question

**URL:** <https://forum.ansible.com/t/script-module-question/16184>\
**Category:** Ansible Project\
**Created:** [September 11, 2014, 5:55pm UTC](https://forum.ansible.com/t/script-module-question/16184 "2014-09-11T17:55:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tiglath](https://avatars.discourse-cdn.com/v4/letter/t/df705f/32.png) [@Tiglath](https://forum.ansible.com/u/Tiglath)\
**Post date:** [September 11, 2014, 5:55pm UTC](https://forum.ansible.com/t/script-module-question/16184/1 "2014-09-11T17:55:44Z")

</div>

I need to run a script from a particular remote directory.

Can script be told to copy to a particular dir before running the script, or it’s a matter of using a copy + shell?

Thanks

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan1](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Post date:** [September 11, 2014, 11:28pm UTC](https://forum.ansible.com/t/script-module-question/16184/2 "2014-09-11T23:28:42Z")

</div>

The “script” module will push to the remote and also run it, all in one go.

[http://docs.ansible.com/script\_module.html](http://docs.ansible.com/script_module.html)
