Discussion:
[ansible-project] Match multiple consecutive lines in lineinfile
Phyks
2015-07-16 21:44:31 UTC
Permalink
Hi,

I need to add a specific line after some lines in a config file. Due to
the structure of the file, I have to match several consecutive lines to
ensure the line will go to the right place (and I know about template
and copy, but they won't fit my needs in this case).

My problem is that is seems the regexp argument in Ansible does not
match "\n", contrary to the line argument.

Is there a workaround?

Thanks!
--
Phyks
--
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+***@googlegroups.com.
To post to this group, send email to ansible-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/55A825BF.8060804%40phyks.me.
For more options, visit https://groups.google.com/d/optout.
Loading...