diff options
author | Jan Chaloupka <jchaloup@redhat.com> | 2017-08-16 09:50:39 +0200 |
---|---|---|
committer | Jan Chaloupka <jchaloup@redhat.com> | 2017-08-16 11:49:34 +0200 |
commit | 13c0075279d3cb8396743f096b05ccd721102903 (patch) | |
tree | 8084aefde49b2ece36441b112e4ff7340f5962b1 /roles/openshift_master/tasks/firewall.yml | |
parent | 2dd904feeec57bcb46281a7066b26c140fadfef8 (diff) | |
download | openshift-13c0075279d3cb8396743f096b05ccd721102903.tar.gz openshift-13c0075279d3cb8396743f096b05ccd721102903.tar.bz2 openshift-13c0075279d3cb8396743f096b05ccd721102903.tar.xz openshift-13c0075279d3cb8396743f096b05ccd721102903.zip |
polish openshift-master role
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 }}" |