From: Guillaume Abrioux Date: Wed, 11 Jul 2018 14:34:09 +0000 (+0200) Subject: mgr: fix condition to add modules to ceph-mgr X-Git-Tag: v3.1.0rc11~9 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=aee48a40a45f4a8b8c9304be663782dab0c9c9c4;p=ceph-ansible.git mgr: fix condition to add modules to ceph-mgr 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 (cherry picked from commit ce5ac930c5b91621a46fc69ddd0dcafb2a24947d) --- diff --git a/roles/ceph-mgr/tasks/main.yml b/roles/ceph-mgr/tasks/main.yml index fb9c0d7aa..713be8da4 100644 --- a/roles/ceph-mgr/tasks/main.yml +++ b/roles/ceph-mgr/tasks/main.yml @@ -51,5 +51,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']