Thanks! It works great! :) On Tuesday, April 22, 2014 5:24:52 PM UTC+3, Matt Martz wrote: > > It should be as easy as: > > with_items: somevar.splitlines() > > I tested this locally an it worked as expected: > -- > Matt Martz > [email protected] <javascript:> > > On April 22, 2014 at 8:52:30 AM, Max Romanovsky > ([email protected]<javascript:>) > wrote: > > Consider the following situation. > It is necessary to execute arbitrary commands during deployment. > Deployment is done using parameterized job in Jenkins CI. Multiline > parameter contains commands separated by newline. > Jenkins passes this parameter to Ansible using --extra-vars. > Is it possible to split this parameter by line separator on Ansible side > and pass this array to with_items? > > Thanks in advance. > -- > 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] <javascript:>. > To post to this group, send email to [email protected]<javascript:> > . > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/41705b7c-1615-4414-963c-2848c6552950%40googlegroups.com<https://groups.google.com/d/msgid/ansible-project/41705b7c-1615-4414-963c-2848c6552950%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/fe030528-d77f-4396-aef3-b67a381d2d75%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
