On 15.07.2017 17:19, Listing wrote:
Hi Kai,

When looking in ansible-doc lineinfile, it does combine both regexp and
insertafter in one task:

- lineinfile:
    path: /etc/httpd/conf/httpd.conf
    regexp: '^Listen '
    insertafter: '^#Listen '
    line: 'Listen 8080

Is this an error in the docs or are we (I?) missing something?

If you remove the regexp line it will work exactly the same.

--
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 [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/4ad475431281e1cb5e5bed67c5d68cfe%40olstad.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to