From 31617afca95e9d8a7cdfa4722cc4089cdf95a709 Mon Sep 17 00:00:00 2001 From: wumingqiao Date: Fri, 8 Mar 2019 14:56:55 +0800 Subject: [PATCH] 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 --- roles/ceph-mgr/tasks/main.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/roles/ceph-mgr/tasks/main.yml b/roles/ceph-mgr/tasks/main.yml index 11f1e8230..8a1310a68 100644 --- a/roles/ceph-mgr/tasks/main.yml +++ b/roles/ceph-mgr/tasks/main.yml @@ -17,4 +17,6 @@ - name: include mgr_modules.yml include_tasks: mgr_modules.yml - when: ceph_mgr_modules|length > 0 \ No newline at end of file + when: + - ceph_mgr_modules|length > 0 + - inventory_hostname == groups[mgr_group_name][0] \ No newline at end of file -- 2.39.5