From: Seena Fallah Date: Wed, 6 Mar 2024 12:37:06 +0000 (+0100) Subject: site: install mgrs with mons if sharing the same host X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c497ac35f86d08b8a98e00ef822d9ee6d1583f6a;p=ceph-ansible.git 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 --- 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'