I have following text in a file where there is space in front of text 'us'
proxies:
us: ["http://aa.bb.cc.dd","http://ee.ff.gg.hh","http://ii.jj.kk.ll"]
I want to insert a new IP at the end of the line and the output should be the following
proxies:
us: ["http://aa.bb.cc.dd","http://ee.ff.gg.hh","http://ii.jj.kk.ll,"http://{{ new_server_ip }}]
I am unable to get the desired output. Please help me with the code
lineinfile:
path: test.sh
regexp: "^\s*(us:)"
line: 'http://{{ new_server_ip }}'