you can use lineinfile module for this.

for more understanding on lineinfile module you can go through to the link "
http://docs.ansible.com/ansible/latest/lineinfile_module.html";

if anything specific is required please elaborate in details.

On Tuesday, August 22, 2017 at 9:10:13 PM UTC+5:30, SARANYA devotional R 
wrote:
>
> I would like to search/wait for a string in a recently created 
> file(test_build_201708211712.log) which has timestamp.
>
> -rw-rw-r-- 1 test test 579 Aug 21 16:00 test_build_201708211559.log
> -rw-rw-r-- 1 test  test 579 Aug 21 17:12 test_build_201708211712.log
>
> How can I achieve this in Ansible?
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/0542ffff-ae64-49eb-965c-b200649c6859%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to