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.
On Thu, Dec 4, 2014 at 6:36 PM, <[email protected]> wrote: > How can we execute shell script passing parameters using ansible? > > Eg: > execute test.sh <param1> <param2> <param3> > == > > Can we use shell module and pass parameters?What is the best approach? > - name: Execute script > shell: test.sh a b c > == > > Please suggest. > > -Vinay > > > -- > You received this message because you are subscribed to the Google Groups > "Ansible Project" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/11383542-041d-48ab-95d3-e261dcfda40d%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/11383542-041d-48ab-95d3-e261dcfda40d%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAMFyvFg3KML6TmEmTwe0Bnx2L5Sfrd69UWcG3w_dpREO9SJs1Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
