diff options
Diffstat (limited to 'roles/os_firewall/tasks/main.yml')
-rw-r--r-- | roles/os_firewall/tasks/main.yml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/roles/os_firewall/tasks/main.yml b/roles/os_firewall/tasks/main.yml new file mode 100644 index 000000000..c477d386c --- /dev/null +++ b/roles/os_firewall/tasks/main.yml @@ -0,0 +1,19 @@ +--- +- name: Detecting Atomic Host Operating System + stat: + path: /run/ostree-booted + register: r_os_firewall_ostree_booted + +- name: Set fact r_os_firewall_is_atomic + set_fact: + r_os_firewall_is_atomic: "{{ r_os_firewall_ostree_booted.stat.exists }}" + +- include: firewalld.yml + when: + - os_firewall_enabled | bool + - os_firewall_use_firewalld | bool + +- include: iptables.yml + when: + - os_firewall_enabled | bool + - not os_firewall_use_firewalld | bool |