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