igw: move gateway_ip_list check to validate role

Signed-off-by: Mike Christie <mchristi@redhat.com>
(cherry picked from commit d89d3e7cd6)
pull/4199/head
Mike Christie 2019-05-30 10:54:04 -05:00 committed by mergify[bot]
parent cf6050d4e6
commit f984db5544
2 changed files with 5 additions and 5 deletions

View File

@ -1,9 +1,4 @@
--- ---
- name: make sure gateway_ip_list is configured
fail:
msg: "you must set a list of IPs (comma separated) for gateway_ip_list"
when: gateway_ip_list == "0.0.0.0"
- name: copy admin key - name: copy admin key
copy: copy:
src: "{{ fetch_directory }}/{{ fsid }}/etc/ceph/{{ cluster }}.client.admin.keyring" src: "{{ fetch_directory }}/{{ fsid }}/etc/ceph/{{ cluster }}.client.admin.keyring"

View File

@ -1,4 +1,9 @@
--- ---
- name: make sure gateway_ip_list is configured
fail:
msg: "you must set a list of IPs (comma separated) for gateway_ip_list"
when: "gateway_ip_list | default('0.0.0.0') == '0.0.0.0'"
- name: fail if unsupported chap configuration - name: fail if unsupported chap configuration
fail: fail:
msg: "Mixing clients with CHAP enabled and disabled is not supported." msg: "Mixing clients with CHAP enabled and disabled is not supported."