summaryrefslogtreecommitdiffstats
path: root/roles/os_firewall/tasks/main.yml
blob: 20efe5b0df48b6534818944f1a05519e2c219e6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
---
- name: Assert - Do not use firewalld on Atomic Host
  assert:
    that: not os_firewall_use_firewalld | bool
    msg: "Firewalld is not supported on Atomic Host"
  when: openshift.common.is_atomic | bool

- include: firewall/firewalld.yml
  when: os_firewall_enabled | bool and os_firewall_use_firewalld | bool

- include: firewall/iptables.yml
  when: os_firewall_enabled | bool and not os_firewall_use_firewalld | bool