]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
site: install mgrs with mons if sharing the same host
authorSeena Fallah <seenafallah@gmail.com>
Wed, 6 Mar 2024 12:37:06 +0000 (13:37 +0100)
committerGuillaume Abrioux <gabrioux@ibm.com>
Thu, 7 Mar 2024 20:03:33 +0000 (21:03 +0100)
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>
site-container.yml.sample
site.yml.sample

index 3935f9b20dfc04b79edd310f92f8ec6658157522..d91da87b1af24b5c5834f3cf1154eb10567cd326 100644 (file)
         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
index e5bd9de61671127c086e6d41a4681613dac8cc77..47465521e193ec9c620b335c3fc74921ebfb4845 100644 (file)
         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'