add iptables_custom_rules_extra var
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2019-10-28 20:30:54 +01:00
parent 672b9d79b5
commit b5b081a460
2 changed files with 2 additions and 1 deletions

View File

@ -15,6 +15,7 @@ iptables_default_tail: |
-A FORWARD -j REJECT
iptables_custom_rules: []
iptables_custom_rules_extra: []
# @var iptables_keep_unmanaged:description: >
# By default this role deletes all iptables rules which are not managed by Ansible.

View File

@ -8,7 +8,7 @@
state: '{{ item.state }}'
weight: '{{ item.weight | default(omit) }}'
table: '{{ item.table | default(omit) }}'
loop: '{{ iptables_custom_rules }}'
loop: '{{ iptables_custom_rules + iptables_custom_rules_extra }}'
loop_control:
label: "{{ item.name }}"