On 24.05.16 20:55 [email protected] wrote:
> lineinfile: dest=/etc/rsyslog.conf 
> insertafter="\*\.\*\;auth\,authpriv\.none" 
> regexp="\*\.\*\;auth\,authpriv\.none" line="Listen 8080"
> 
> The only thing that happens here is Listen 8080 replaces 
> the *.*;auth,authpriv.none line.  should it not be placing it after it???

I think you don't need the regexp, or rather the regexp should match
the line you are *inserting*. To let ansible know, if the line is
already in there.

Right now you are telling ansible to replace the line
...auth,authpriv... and insert the line after the line ...auth,authpriv...

Johannes


-- 
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/5745BCE3.1020607%40ojkastl.de.
For more options, visit https://groups.google.com/d/optout.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to