From: Sébastien Han Date: Wed, 4 Jul 2018 14:39:33 +0000 (+0200) Subject: ceph-common: fix rhcs condition X-Git-Tag: v3.1.0rc11~21 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d565f28ef5a26d79b3b60b61cc86265bf46cdc43;p=ceph-ansible.git ceph-common: fix rhcs condition We forgot to add mgr_group_name when checking for the mon repo, thus the conditional on the next task was failing. Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1598185 Signed-off-by: Sébastien Han (cherry picked from commit fcf11ecc3567398f92b9f91e1a0749edb921131f) --- diff --git a/roles/ceph-common/tasks/installs/prerequisite_rhcs_cdn_install.yml b/roles/ceph-common/tasks/installs/prerequisite_rhcs_cdn_install.yml index fab01d99b..04461a4d1 100644 --- a/roles/ceph-common/tasks/installs/prerequisite_rhcs_cdn_install.yml +++ b/roles/ceph-common/tasks/installs/prerequisite_rhcs_cdn_install.yml @@ -6,7 +6,7 @@ register: rhcs_mon_repo check_mode: no when: - - mon_group_name in group_names + - (mon_group_name in group_names or mgr_group_name in group_names) - name: enable red hat storage monitor repository command: subscription-manager repos --enable rhel-7-server-rhceph-{{ ceph_rhcs_version }}-mon-rpms