cephadm-adopt: Fixes rbd-mirror regression

779523f86f introduced a regression
related to rbdmirrors tasks. They were executed while
ceph_rbd_mirror_remot_* variables were not set.

Signed-off-by: Teoman ONAY <tonay@ibm.com>
(cherry picked from commit 18cd35bad5)
pull/7454/head
Teoman ONAY 2023-08-04 14:37:39 +02:00 committed by Teoman ONAY
parent 0b2826132e
commit 0a9a91b662
1 changed files with 2 additions and 1 deletions

View File

@ -464,7 +464,8 @@
- name: store existing rbd mirror peers in monitor config store - name: store existing rbd mirror peers in monitor config store
when: when:
- ceph_rbd_mirror_configure | default(True) | bool - ceph_rbd_mirror_configure | default(True) | bool
- ceph_rbd_mirror_remote_user is undefined - ceph_rbd_mirror_remote_user is defined
- ceph_rbd_mirror_remote_cluster is defined
block: block:
- name: import ceph-defaults - name: import ceph-defaults
import_role: import_role: