Ansible playbook text/line insertion in file

8 views
Skip to first unread message

Abhinav Agnihotri

unread,
Mar 22, 2018, 8:09:56 AM3/22/18
to Ansible Project
Hi,

This is my file, in which i want to change some existing line.

Some random text: testing line
Below are examples:
Example 0
Example 1
Example 2
path:this file path is /home/ansible/Test_folder1/Test_path.cgf

i need this:
Some random text: testing line
Below are some examples:
Example 0
Example 1
Example 2
path:this file path is /home/ansible/Test_folder1/Test_path.cgf

But, actually i want this thing by using some regexp or insertbefore attribute.

Reply all
Reply to author
Forward
0 new messages