# how to execute shell script passing parameters

**URL:** <https://forum.ansible.com/t/how-to-execute-shell-script-passing-parameters/16967>\
**Category:** Ansible Project\
**Created:** [December 5, 2014, 12:36am UTC](https://forum.ansible.com/t/how-to-execute-shell-script-passing-parameters/16967 "2014-12-05T00:36:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vinay.bhasker](https://avatars.discourse-cdn.com/v4/letter/v/5f9b8f/32.png) [@vinay.bhasker](https://forum.ansible.com/u/vinay.bhasker)\
**Post date:** [December 5, 2014, 12:36am UTC](https://forum.ansible.com/t/how-to-execute-shell-script-passing-parameters/16967/1 "2014-12-05T00:36:37Z")

</div>

How can we execute shell script passing parameters using ansible?

Eg:  
execute test.sh

---

<div class="post-metadata">

**Author:** ![James\_Cammarata](https://avatars.discourse-cdn.com/v4/letter/j/7c8e57/32.png) [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Post date:** [December 5, 2014, 2:13am UTC](https://forum.ansible.com/t/how-to-execute-shell-script-passing-parameters/16967/2 "2014-12-05T02:13:51Z")

</div>

Hi Vinay,

Yes, you can just use the shell, command, or script modules to execute your command just the way you would from the command line.
