Hi All,
I’m new to ansible can you please help to append a string at the end of a particular line in server.xml file
String= packetSize=“65536”
line=
I need something like this
Many Thanks
Thomas Xavier
Hi All,
I’m new to ansible can you please help to append a string at the end of a particular line in server.xml file
String= packetSize=“65536”
line=
I need something like this
Many Thanks
Thomas Xavier
lineinfile cannot do that but I believe the replace module can:
http://docs.ansible.com/replace_module.html
Maybe something like this:
- replace: dest=/file/name regexp='(\s+<Connector .*)(/>)$'
replace='\1 packetSize="65536" \2'
-Toshio