diff options
author | OpenShift Bot <eparis+openshiftbot@redhat.com> | 2017-08-17 00:09:55 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-17 00:09:55 -0400 |
commit | 22fc8d8c9df7e5d72b9f60218022ca059db309be (patch) | |
tree | dd16cba51c466fb36ad29123afdbdcb5dc477168 /roles/openshift_master/tasks/firewall.yml | |
parent | a61da58f73c9cc3b3d4bff284752d9385f15fc32 (diff) | |
parent | 13c0075279d3cb8396743f096b05ccd721102903 (diff) | |
download | openshift-22fc8d8c9df7e5d72b9f60218022ca059db309be.tar.gz openshift-22fc8d8c9df7e5d72b9f60218022ca059db309be.tar.bz2 openshift-22fc8d8c9df7e5d72b9f60218022ca059db309be.tar.xz openshift-22fc8d8c9df7e5d72b9f60218022ca059db309be.zip |
Merge pull request #4947 from ingvagabund/polish-openshift-master-role
Merged by openshift-bot
Diffstat (limited to 'roles/openshift_master/tasks/firewall.yml')
-rw-r--r-- | roles/openshift_master/tasks/firewall.yml | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/roles/openshift_master/tasks/firewall.yml b/roles/openshift_master/tasks/firewall.yml index e51eeb56e..38afb6764 100644 --- a/roles/openshift_master/tasks/firewall.yml +++ b/roles/openshift_master/tasks/firewall.yml @@ -7,7 +7,8 @@ action: add protocol: "{{ item.port.split('/')[1] }}" port: "{{ item.port.split('/')[0] }}" - when: item.cond | default(True) + when: + - item.cond | default(True) with_items: "{{ r_openshift_master_os_firewall_allow }}" - name: Remove iptables rules @@ -16,7 +17,8 @@ action: remove protocol: "{{ item.port.split('/')[1] }}" port: "{{ item.port.split('/')[0] }}" - when: item.cond | default(True) + when: + - item.cond | default(True) with_items: "{{ r_openshift_master_os_firewall_deny }}" - when: r_openshift_master_firewall_enabled | bool and r_openshift_master_use_firewalld | bool @@ -27,7 +29,8 @@ permanent: true immediate: true state: enabled - when: item.cond | default(True) + when: + - item.cond | default(True) with_items: "{{ r_openshift_master_os_firewall_allow }}" - name: Remove firewalld allow rules @@ -36,5 +39,6 @@ permanent: true immediate: true state: disabled - when: item.cond | default(True) + when: + - item.cond | default(True) with_items: "{{ r_openshift_master_os_firewall_deny }}" |