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
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
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"
>
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}}"
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
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
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
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
/