Thanks. Let me try to write it and will paste here for your review.
Regards Amit On Mon, Dec 9, 2019, 9:16 AM Dick Visser <[email protected]> wrote: > You can use any variables that you use in your playbook to construct > the actual command: > > - name: return motd to registered var > command: /opt/scripts/hackme.sh --license {{ license }} --strategy > {{ strategy }} > > etc etc > > > On Mon, 9 Dec 2019 at 13:47, Amit Kulkarni <[email protected]> wrote: > > > > Hello Dick, > > > > Thanks for the response. > > > > Any code snippet that you can share that will be of great help. > > > > Actually I am working Microstrategy build automation, where we wanted to > trigger the shell script and pass dynamic parameters (e.g. License key etc) > and also need to send the email to DL in case of success and failures. > > > > As far I researched, we can use script module to trigger the any shell > script and but wondering how can I pass dynamic parameters every time. > > > > Regards > > Amit > > > > > > > > On Mon, Dec 9, 2019 at 5:23 AM Dick Visser <[email protected]> > wrote: > >> > >> You can use variable and jinja templating logic in your script task. > >> If you need more concrete help, provide more details. > >> > >> Dick > >> > >> On Mon, 9 Dec 2019 at 00:21, Amit Kulkarni <[email protected]> > wrote: > >> > > >> > Hello All, > >> > > >> > I wanted to pass dynamic parameters to shell script in playbook. > >> > > >> > I am using script module to trigger, any pointers on this will be > really helpful. > >> > > >> > Regards > >> > Amit > >> > > >> > -- > >> > 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 view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/CAON3ZR0VwNrb46ELvZK6UG_wL56tms7vpN0a4s1Z3497mxckjg%40mail.gmail.com > . > >> > >> > >> > >> -- > >> Dick Visser > >> Trust & Identity Service Operations Manager > >> GÉANT > >> > >> -- > >> 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 view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/CAL8fbwPOt5y0M1NqfY_U80MOnkzoVDc2Mhx%2B5VeDk979t7CKWg%40mail.gmail.com > . > > > > -- > > 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 view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/CAON3ZR06ZP5XTKwPz1hc%2BpvoqDumR%2BU4GnJQi%3DwfnukgNH3Fqg%40mail.gmail.com > . > > > > -- > Dick Visser > Trust & Identity Service Operations Manager > GÉANT > > -- > 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 view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/CAL8fbwOU81qNak3Gd1Hk3H7o8hdR730hvC8SVXU%3DMD2xXz%2B7Og%40mail.gmail.com > . > -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAON3ZR2Ta3S4qqU1Vo20GebyY25KQAAsPRsdMrV2M-ankjVLyA%40mail.gmail.com.
