Do not loop on ceph_external_multi_config unless it is defined

Change-Id: I3039307f226aa037ac4f16c9cb10eca42a3186be
Closes-Bug: #1912109
This commit is contained in:
John Fulton 2021-01-17 14:20:31 -05:00
parent 33e1d636f0
commit dc070b44a9
1 changed files with 3 additions and 1 deletions

View File

@ -721,7 +721,9 @@ outputs:
tripleo_ceph_client_config_home: {get_param: CephConfigPath}
dcn: "{{ item }}"
loop: "{{ ceph_external_multi_config }}"
when: {get_param: CephAnsibleSkipClient}
when:
- ceph_external_multi_config is defined
- {get_param: CephAnsibleSkipClient}
- name: ensure ceph health is OK before proceeding
import_role:
role: ceph