Hi, all I notice that ansible 2.0 has new module - blockinfile. I want to use it to insert a block into remote xml file.
My requirement is to insert block before the first match of specified regular expression, one xml tag. But the document of blockinfile says *the block will be inserted before the last match of specified regular expression. * If I make this specified regular expression is unique, the expression would be two lines. It seems not work. If blockinfile can define the insert place with the first match or the last match, it would be better. So far, do you have any suggestion to implement my requirement with ansible? -- Rella -- 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/d8c26880-e737-4733-b7e5-bac114d94fbf%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
