Allow to proceed with role if ceph_conf_file is set

We shouldn't stop role execution if ceph_mons is an epty list, since
deployer can provide ceph_conf_file and keys instead.

Change-Id: I35b23e266aa9c5e29e79ea040994039e47242c9c
This commit is contained in:
Dmitriy Rabotyagov 2020-10-02 18:07:01 +03:00 committed by Dmitriy Rabotyagov (noonedeadpunk)
parent 66c70efa3e
commit 097673afa8
2 changed files with 1 additions and 8 deletions

View File

@ -6,13 +6,6 @@
# Directory containing the Ceph keyring files with access credentials.
ceph_keyrings_dir: /etc/openstack_deploy/ceph-keyrings
# List addresses of ceph mons, so they are not used as IPs for containers on
# the storage network.
ceph_mons:
- 172.29.244.18
- 172.29.244.19
- 172.29.244.20
# General Ceph configuration file containing the information for Ceph clients
# to connect to the Ceph cluster.
ceph_conf_file: |

View File

@ -16,7 +16,7 @@
- name: End playbook if disabled
meta: end_play
when:
- ceph_mons | list | length == 0
- ceph_mons | list | length == 0 and ceph_conf_file is not defined
tags:
- always