From 65d5372018069c14acd32fb0ff5aa0443db4ac19 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 3935f9b20d..d91da87b1a 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 e5bd9de616..47465521e1 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'