I need to set the multiline flag on this, but don’t know how to. Can anyone help?
regexp: '^(?:passwd):\s+(?:(?!sss).)+$'
I need to set the multiline flag on this, but don’t know how to. Can anyone help?
regexp: '^(?:passwd):\s+(?:(?!sss).)+$'
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
I had seen the doc before, but I didn’t notice the definition under the regexp before. Thank you.