]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
mgr: fix condition to add modules to ceph-mgr
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 11 Jul 2018 14:34:09 +0000 (16:34 +0200)
committermergify[bot] <mergify[bot]@users.noreply.github.com>
Fri, 13 Jul 2018 11:51:28 +0000 (11:51 +0000)
Follow up on #2784

We must check in the generated fact `_disabled_ceph_mgr_modules` to
enable disabled mgr module.
Otherwise, this task will be skipped because it's not comparing the
right list.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1600155
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit ce5ac930c5b91621a46fc69ddd0dcafb2a24947d)

roles/ceph-mgr/tasks/main.yml

index 2970daf375d3471222f361a53d61755aefd8c938..44c42ec67c059dd06bb8a0c5748f18eb43853801 100644 (file)
@@ -48,5 +48,5 @@
   with_items: "{{ ceph_mgr_modules }}"
   delegate_to: "{{ groups[mon_group_name][0] }}"
   when:
-    - item in _ceph_mgr_modules.disabled_modules
+    - item in _disabled_ceph_mgr_modules
     - ceph_release_num[ceph_release] >= ceph_release_num['luminous']