- name: Set iptables to log rejected packets 5 lineinfile: dest=/etc/rsyslog.conf insertafter="^#kern\.\*\ \ *\/dev\/console" line="{{item}}" with_items: - "& ~" - ":msg,contains,\"iptables \" /var/log/iptables.log" - "# iptables logs" - " "
The line ":msg,contains,\"iptables \" /var/log/iptables.log" always bombs out. I've tried: "\:msg,contains,\"iptables \" /var/log/iptables.log" ':msg,contains,"iptables " /var/log/iptables.log' "':'msg,contains,\"iptables \" /var/log/iptables.log" and I think a couple of other goofy things I found while Googling like enclosing everything after lineinfile: with strong quotes. What the heck do I need to do to get that line to pass? -- 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/ee2babe4-e3ca-4c0b-bba5-b54b4d779882%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.