ceph-mgr: run mgr_modules.yml only on the first mgr host

the task will be delegated to mons[0] for all mgr hosts, so we can just run it on the first host and have the same effect.

Signed-off-by: wumingqiao <wumingqiao@beyondcent.com>
pull/3714/head
wumingqiao 2019-03-08 14:56:55 +08:00 committed by mergify[bot]
parent d8538ad4e1
commit 31617afca9
1 changed files with 3 additions and 1 deletions

View File

@ -17,4 +17,6 @@
- name: include mgr_modules.yml
include_tasks: mgr_modules.yml
when: ceph_mgr_modules|length > 0
when:
- ceph_mgr_modules|length > 0
- inventory_hostname == groups[mgr_group_name][0]