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/CAFwWkHpSg1JXtc3OQnR4%2BA1Swg0dpzZbuTXdk2hWoonBfDOTdw%40mail.gmail.com.
