From c497ac35f86d08b8a98e00ef822d9ee6d1583f6a Mon Sep 17 00:00:00 2001 From: Seena Fallah Date: Wed, 6 Mar 2024 13:37:06 +0100 Subject: [PATCH] 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 --- site-container.yml.sample | 2 +- site.yml.sample | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/site-container.yml.sample b/site-container.yml.sample index 3935f9b20..d91da87b1 100644 --- a/site-container.yml.sample +++ b/site-container.yml.sample @@ -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 diff --git a/site.yml.sample b/site.yml.sample index e5bd9de61..47465521e 100644 --- a/site.yml.sample +++ b/site.yml.sample @@ -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'