[ansible-project] Re: How to change this regexp to multiline?

2017-09-21 Thread John Harmon
I had seen the doc before, but I didn't notice the definition under the 
regexp before.  Thank you.

On Thursday, September 21, 2017 at 1:51:31 PM UTC-6, John Harmon wrote:
>
> I need to set the multiline flag on this, but don't know how to.  Can 
> anyone help?
>
> regexp: '^(?:passwd):\s+(?:(?!sss).)+$'
>
>
>

-- 
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/22827e30-974b-4ea9-a18c-c4284e2b6226%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Re: How to change this regexp to multiline?

2017-09-21 Thread Kai Stian Olstad

On 21. sep. 2017 22:01, John Harmon wrote:

Just a thought I am using this with the replace module does it
already assume multiline (as lineinfile does not)?


Have you read the docs under regexp?
https://docs.ansible.com/ansible/latest/replace_module.html

--
Kai Stian Olstad

--
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/59bd02db-b102-8b53-b2c2-f0a154d8dfe1%40olstad.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Re: How to change this regexp to multiline?

2017-09-21 Thread John Harmon
Just a thought I am using this with the replace module does it 
already assume multiline (as lineinfile does not)?

On Thursday, September 21, 2017 at 1:51:31 PM UTC-6, John Harmon wrote:
>
> I need to set the multiline flag on this, but don't know how to.  Can 
> anyone help?
>
> regexp: '^(?:passwd):\s+(?:(?!sss).)+$'
>
>
>

-- 
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/0891a1b7-461b-420f-b49d-cce08628ce35%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.