If a regexp matches multiple lines in a file, lineinfile will only change 
the first occurrence.  Is there a way to make change them all?  I saw 
someone used another task to count the number of occurrences of a pattern 
and then loop using with_sequence in the lineinfile task but I'm wondering 
if there's a cleaner way.

Thanks,
Ryan

-- 
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/a95cbc36-aee2-42b6-84a2-3774f50eb204%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to