It seems you would just use the shell module and invoke sed.


On Sat, Jan 4, 2014 at 1:04 AM, eskhool <[email protected]> wrote:

> Hi,
>  If we don't have the option to use templates as the file may vary across
> system, is there a way to find and replace multiple lines based on a
> regex...something like an option in lineinfile such as 'all'. What other
> mechanism can be recommended? Any reason to not have this option? And if
> contributed will such a change be accepted in ansible core?
>
> Thanks
>
> --
> 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].
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Michael DeHaan <[email protected]>
CTO, AnsibleWorks, Inc.
http://www.ansibleworks.com/

-- 
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].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to