igw: use api_port variable for firewall port setting

Don't hard code api port because it might be overridden by the user.

Signed-off-by: Mike Christie <mchristi@redhat.com>
(cherry picked from commit e2f1f81de4)
pull/3313/head
Mike Christie 2018-11-08 15:23:24 -06:00 committed by mergify[bot]
parent db576f6f0e
commit 44ee5c7495
1 changed files with 2 additions and 2 deletions

View File

@ -168,9 +168,9 @@
tags: tags:
- firewall - firewall
- name: open iscsi ports - name: open iscsi api ports
firewalld: firewalld:
port: "5000/tcp" port: "{{ api_port | default(5000) }}/tcp"
zone: "{{ ceph_iscsi_firewall_zone }}" zone: "{{ ceph_iscsi_firewall_zone }}"
source: "{{ public_network }}" source: "{{ public_network }}"
permanent: true permanent: true