site: install mgrs with mons if sharing the same host

If mgr is meant to be installed on the mon host it needs to be installed in the same playbook as restart handlers might failed because of non-existance mgr

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
pull/7481/head
Seena Fallah 2024-03-06 13:37:06 +01:00 committed by Guillaume Abrioux
parent d197bcdc2d
commit 92c752df87
2 changed files with 2 additions and 2 deletions

View File

@ -121,7 +121,7 @@
name: ceph-mon
- import_role:
name: ceph-mgr
when: groups.get(mgr_group_name, []) | length == 0
when: groups.get(mgr_group_name, []) | length == 0 or mgr_group_name in group_names
- hosts: mons
gather_facts: false

View File

@ -116,7 +116,7 @@
name: ceph-mon
- import_role:
name: ceph-mgr
when: groups.get(mgr_group_name, []) | length == 0
when: groups.get(mgr_group_name, []) | length == 0 or mgr_group_name in group_names
post_tasks:
- name: set ceph monitor install 'Complete'