summaryrefslogtreecommitdiffstats
path: root/roles/os_firewall/tasks
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2018-01-17 17:23:12 -0500
committerScott Dodson <sdodson@redhat.com>2018-01-18 08:38:47 -0500
commit4671dcc9292c2aa65e16afab323413efea5e68dc (patch)
treefa6f9d739afcab9e52e13030e043f182986b845a /roles/os_firewall/tasks
parentb58e8c1136725db9ce11d01e01e42575ee25ab44 (diff)
downloadopenshift-4671dcc9292c2aa65e16afab323413efea5e68dc.tar.gz
openshift-4671dcc9292c2aa65e16afab323413efea5e68dc.tar.bz2
openshift-4671dcc9292c2aa65e16afab323413efea5e68dc.tar.xz
openshift-4671dcc9292c2aa65e16afab323413efea5e68dc.zip
Allow for firewalld on atomic host
Right now this is only available on fedora so guard it with openshift_enable_unsupported_configurations
Diffstat (limited to 'roles/os_firewall/tasks')
-rw-r--r--roles/os_firewall/tasks/firewalld.yml5
1 files changed, 4 insertions, 1 deletions
diff --git a/roles/os_firewall/tasks/firewalld.yml b/roles/os_firewall/tasks/firewalld.yml
index 4eae31596..fa933da51 100644
--- a/roles/os_firewall/tasks/firewalld.yml
+++ b/roles/os_firewall/tasks/firewalld.yml
@@ -2,7 +2,9 @@
- name: Fail - Firewalld is not supported on Atomic Host
fail:
msg: "Firewalld is not supported on Atomic Host"
- when: r_os_firewall_is_atomic | bool
+ when:
+ - r_os_firewall_is_atomic | bool
+ - not openshift_enable_unsupported_configurations | default(false)
- name: Install firewalld packages
package:
@@ -10,6 +12,7 @@
state: present
register: result
until: result is succeeded
+ when: not r_os_firewall_is_atomic | bool
- name: Ensure iptables services are not enabled
systemd: