[ansible-project] line-in-file . line update from a list of values

2021-03-08 Thread dudu.c...@gmail.com
Hi I’m using lineinfile to include new value inside a file *Original line * Kafka-list= kafka1:9092;kafka2:9092;kafka3:9092 I need to replace the value with parameters that are managed inside a configuration – I need to include all server hostname that are under kafka_server_details sec

Re: [ansible-project] Line in file

2020-05-11 Thread Sivaraman P
Thank you for your assistance. -- 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 ansible-project+unsubscr...@googlegroups.com. To view this discussion on the we

Re: [ansible-project] Line in file

2020-05-11 Thread Stefan Hornburg (Racke)
On 5/11/20 2:17 PM, Sivaraman P wrote: > Hi All, > > I am using Line in file nodule to write a list output in ansible to a file in > the target machine. > > Below is the code i have used. > > hosts: localhost > tasks: > - lineinfile: > create: yes > regexp: "NONEXISTENTLINE" >

[ansible-project] Line in file

2020-05-11 Thread Sivaraman P
Hi All, I am using Line in file nodule to write a list output in ansible to a file in the target machine. Below is the code i have used. hosts: localhost tasks: - lineinfile: create: yes regexp: "NONEXISTENTLINE" dest: /projects/testing/check.txt line : "{{item}}"

Re: [ansible-project] Line in file

2019-07-11 Thread Jibsan Joel Rosa Toirac
I already played it but it doesn't do anything. Here is the out from the prompt TASK [ansible-integro-vistualizacion : adding extra path] changed: [192.168.14.96] => (item=/usr/lib/jvm/java-8-openjdk-amd64/jre/b

Re: [ansible-project] Line in file

2019-07-11 Thread Kunalsing Thakur
missed export name: adding extra path shell: PATH=$PATH:{{item}} && export PATH with_items: - /usr/lib/jvm/java-8-openjdk-amd64/jre/bin - /usr/lib/jvm/java-8-openjdk-amd64/bin On Thu, Jul 11, 2019 at 8:07 PM Kunalsing Thakur wrote: > name: adding extra path > shell: PATH=$PATH:{{item}} > wi

Re: [ansible-project] Line in file

2019-07-11 Thread Kunalsing Thakur
name: adding extra path shell: PATH=$PATH:{{item}} with_items: - /usr/lib/jvm/java-8-openjdk-amd64/jre/bin - /usr/lib/jvm/java-8-openjdk-amd64/bin On Thu, Jul 11, 2019 at 8:02 PM Jibsan Joel Rosa Toirac wrote: > Hello to everyone. I have a big problem. I need to add a line text to > enviro

[ansible-project] Line in file

2019-07-11 Thread Jibsan Joel Rosa Toirac
Hello to everyone. I have a big problem. I need to add a line text to environment file on Ubuntu. Here is the file content: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" and I want to insert the following lines at the end but in the same line /