Re: [ansible-project] jenkins job config.xml

2023-06-21 Thread Narmada Karthika
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

Re: [ansible-project] jenkins job config.xml

2023-06-19 Thread Narmada Karthika
Can I use this module for xml files as well? On Mon, Jun 19, 2023 at 3:40 PM 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 M

Re: [ansible-project] jenkins job config.xml

2023-06-19 Thread Abhijeet Kasurde
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 wrote: > Thank you, by using the above module I am able to replac

Re: [ansible-project] jenkins job config.xml

2023-06-19 Thread Narmada Karthika
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/an

Re: [ansible-project] jenkins job config.xml

2023-06-17 Thread Dick Visser
https://docs.ansible.com/ansible/latest/collections/community/general/xml_module.html On Sat, 17 Jun 2023 at 01:40, Narmada Karthika 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 > crea

[ansible-project] jenkins job config.xml

2023-06-16 Thread Narmada Karthika
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 su