Skip to content

Commit

Permalink
site: install mgrs with mons if sharing the same host
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
clwluvw committed Mar 6, 2024
1 parent b1848ac commit 65d5372
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion site-container.yml.sample
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion site.yml.sample
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 65d5372

Please sign in to comment.