diff --git a/tasks/main.yml b/tasks/main.yml index 792d96d..5875290 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -86,6 +86,7 @@ dest: "{{ firewall_iptables_rulefile }}" validate: "iptables-restore --test %s" when: + - ansible_virtualization_type != "docker" - firewall_services is defined - firewall_service == "iptables" loop_control: diff --git a/vars/Alpine.yml b/vars/Alpine.yml index 754b3c9..2c0d675 100644 --- a/vars/Alpine.yml +++ b/vars/Alpine.yml @@ -7,6 +7,6 @@ firewall_packages: - firewalld - ufw -firewall_iptables_rulefile: /etc/iptables.conf +firewall_iptables_rulefile: /etc/iptables/rules-save firewall_service: iptables