Fix a conditional.

This commit is contained in:
Andrea Dell'Amico 2020-07-18 18:29:58 +02:00
parent 879ec06002
commit 3f3f0f404b
2 changed files with 3 additions and 6 deletions

View File

@ -88,4 +88,5 @@
- name: Set the firewalld default zone.
command: firewall-cmd --set-default-zone={{ firewalld_default_zone }}
when: firewalld_enabled
tags: [ 'iptables', 'firewall', 'firewalld' ]

View File

@ -4,10 +4,6 @@
- iptables_persistent_enabled
- ansible_distribution_file_variety == "Debian"
- import_tasks: firewalld_rules.yml
when:
- firewalld_enabled
- ansible_distribution_file_variety == "RedHat"
when: ansible_distribution_file_variety == "RedHat"
- import_tasks: firewalld_disable.yml
when:
- firewalld_enabled
- ansible_distribution_file_variety == "RedHat"
when: ansible_distribution_file_variety == "RedHat"