I end up with replace module with pattern 'aaaa:' in it.

On Friday, February 26, 2016 at 1:31:37 PM UTC-7, Weiwen Chen wrote:
>
> Hello Expert,
>
> Is there a way in ansible to delete multiple lines after a pattern matched?
>
>
> For example, I have a file with following contents, and need to delete 
> lines 'bbbbbb', 'cccccc'. However I really do not know what are those two 
> lines as they are generated dynamically. I only know line 'aaaa:'
>
> -----------------------
> start contents
> aaaa:
>     bbbbbb
>     cccccc
> other contents
>
>

-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/291134d6-13ce-4d1e-8282-4302814299c9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to