Thankyou Abhijeet, template module helped solve my issue. But as of now I am passing variables as --extra-vars to the command but I am looking for something where I can pass those variables with in the playbook instead of passing them manually. the variables are output of above task in the same playbook.
On Monday, June 19, 2023 at 3:40:04 PM UTC-7 Abhijeet Kasurde wrote: > Please use template module - > https://docs.ansible.com/ansible/latest/collections/ansible/builtin/template_module.html > > to create a new pipeline.yml and then create jobs accordingly. > > On Mon, Jun 19, 2023 at 3:05 PM Narmada Karthika <[email protected]> > wrote: > >> Thank you, by using the above module I am able to replace with the >> required value in one location, what if I want to replace with my required >> value in other locations in the same config.xml file? >> >> On Saturday, June 17, 2023 at 12:34:17 AM UTC-7 Dick Visser wrote: >> >>> >>> https://docs.ansible.com/ansible/latest/collections/community/general/xml_module.html >>> >>> >>> On Sat, 17 Jun 2023 at 01:40, Narmada Karthika <[email protected]> >>> wrote: >>> >>>> I have a jenkins job config.xml file, this is the template file, which >>>> will be replaced with the values from another yml file and next it has to >>>> create a jenkins job out of it. I am trying to figure out the best way to >>>> replace the values with the values from pipleine.yml file. could some one >>>> suggest better options. >>>> >>>> -- >>>> 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/7f6ddd96-2464-4ce4-ab00-f99f996c89bbn%40googlegroups.com >>>> >>>> <https://groups.google.com/d/msgid/ansible-project/7f6ddd96-2464-4ce4-ab00-f99f996c89bbn%40googlegroups.com?utm_medium=email&utm_source=footer> >>>> . >>>> >>> -- >>> Sent from Gmail Mobile >>> >> -- >> 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/557339af-f3b9-4216-8843-659f24266fbfn%40googlegroups.com >> >> <https://groups.google.com/d/msgid/ansible-project/557339af-f3b9-4216-8843-659f24266fbfn%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > > > -- > Thanks, > Abhijeet Kasurde > -- 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/cadb6220-1419-4029-a575-c3df2ec7b8b8n%40googlegroups.com.
