add iptables tail rules

This commit is contained in:
Robert Kaussow 2017-07-13 21:27:26 +02:00
parent 3fa6a3c5fc
commit 91c7cfef59

View File

@ -23,3 +23,12 @@
state: present state: present
rules: '{{ iptables_default_head }}' rules: '{{ iptables_default_head }}'
tags: iptables tags: iptables
- name: Set default iptables tail rules
iptables_raw:
name: iptables_default_tail
weight: 99
keep_unmanaged: '{{ iptables_keep_unmanaged }}'
state: '{{ (iptables_default_tail != "" ) | ternary("present", "absent") }}'
rules: '{{ iptables_default_tail }}'
tags: iptables