mirror of https://github.com/ceph/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 <seenafallah@gmail.com>pull/7491/head
parent
07bf577051
commit
c497ac35f8
|
@ -121,7 +121,7 @@
|
||||||
name: ceph-mon
|
name: ceph-mon
|
||||||
- import_role:
|
- import_role:
|
||||||
name: ceph-mgr
|
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
|
- hosts: mons
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
|
|
|
@ -116,7 +116,7 @@
|
||||||
name: ceph-mon
|
name: ceph-mon
|
||||||
- import_role:
|
- import_role:
|
||||||
name: ceph-mgr
|
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:
|
post_tasks:
|
||||||
- name: set ceph monitor install 'Complete'
|
- name: set ceph monitor install 'Complete'
|
||||||
|
|
Loading…
Reference in New Issue