site.yml: do not bootstrap mgrs on monitors by default

Let's bootstrap mgrs on monitors only if there's no mgrs section in
inventory hostfile.

Closes: #3613

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
pull/3636/head
Guillaume Abrioux 2019-02-22 10:50:22 +01:00 committed by mergify[bot]
parent dc1c0dcee2
commit 299c7b670e
2 changed files with 2 additions and 0 deletions

View File

@ -126,6 +126,7 @@
name: ceph-mon
- import_role:
name: ceph-mgr
when: groups.get(mgr_group_name, []) | length == 0
- hosts: mons
any_errors_fatal: true

View File

@ -106,6 +106,7 @@
name: ceph-mon
- import_role:
name: ceph-mgr
when: groups.get(mgr_group_name, []) | length == 0
post_tasks:
- name: set ceph monitor install 'Complete'