Re: [ansible-project] Loop files that will be used as variables

2023-06-19 Thread dudu.c...@gmail.com
Vladimir Botka‏@ Thank you - it works ב-יום ראשון, 18 ביוני 2023 בשעה 09:51:58 UTC+3, Vladimir Botka כתב/ה: > On Wed, 14 Jun 2023 04:07:38 -0700 (PDT) > "dudu.c...@gmail.com" wrote: > > > *My J2 file* > > > > select * from {{ item.id}} where {{ item.color}} > > > > *My input files* > > >

[ansible-project] Copy from remote server to local

2023-06-19 Thread dudu.c...@gmail.com
Hi , 1. Is there an option to copy full folder from remote server to local server ? 2. Copy all files under a folder located in remote server to a folder on local server - without running find job that register all files As i understand Fetch is for single file or multi files that can be ru

Re: [ansible-project] Copy from remote server to local

2023-06-19 Thread Dick Visser
The closest would be https://docs.ansible.com/ansible/latest/collections/ansible/posix/synchronize_module.html On Mon, 19 Jun 2023 at 09:47, dudu.c...@gmail.com wrote: > Hi , > 1. Is there an option to copy full folder from remote server to local > server ? > 2. Copy all files under a folder loc

[ansible-project] couldn't resolve module/action 'community.network.ne_command'

2023-06-19 Thread Azadeh Amirhosseini
Hi All, bellow is a part of my playbook which tries to connect to a Huawei ne device. --- - hosts: hostlist gather_facts: no connection: network_cli collections: community.network tasks: - name: "Commands NE Huawei" no_log: false community.network.ne_command: comm

[ansible-project] lineinfile module to replace a string

2023-06-19 Thread Veera
Hi, I am trying to replace a line/string in a 224 lines file . Trying with replace and lineinfile module , but seems i am missing a bit.. below is the string to consider: logging.files: # Configure the path where the logs are written. The default is the logs directory # under the home

Re: [ansible-project] lineinfile module to replace a string

2023-06-19 Thread Dick Visser
What kind of file is this? It looks like yaml? On Mon, 19 Jun 2023 at 18:47, Veera wrote: > Hi, > > I am trying to replace a line/string in a 224 lines file . > Trying with replace and lineinfile module , but seems i am missing a bit.. > > below is the string to consider: > > logging.files

Re: [ansible-project] lineinfile module to replace a string

2023-06-19 Thread Veera
Yes.. It's basically another yaml file. On Tue, 20 Jun, 2023, 12:24 am Dick Visser, wrote: > What kind of file is this? > It looks like yaml? > > On Mon, 19 Jun 2023 at 18:47, Veera wrote: > >> Hi, >> >> I am trying to replace a line/string in a 224 lines file . >> Trying with replace and

Re: [ansible-project] lineinfile module to replace a string

2023-06-19 Thread Dick Visser
On Mon, 19 Jun 2023 at 21:37, Veera wrote: > Yes.. It's basically another yaml file. > > I'm asking because string manipulation of otherwise structured data will become messy quickly - as you have found out. If you must keep all the comments then you'll have to use logic to handle that. Whenever

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-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
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] Issue with community.general.make module

2023-06-19 Thread Nico Kadel-Garcia
On Tue, Jun 13, 2023 at 9:14 AM lift...@gmail.com wrote: > > I have a RHEL 7 server that is running Apache Guacamole. I had a playbook > that we turned into a role that's part of an internal collection that used to > work, but since I have switched it to use community.general.make instead of >