mirror of https://github.com/ceph/ceph-ansible.git
common: enable tool repo for mds install of rhcs
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1405985
Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit 775d61ed09
)
pull/1219/head
parent
67ab28a037
commit
1a4e3ab5f3
|
@ -35,17 +35,17 @@
|
||||||
- osd_group_name in group_names
|
- osd_group_name in group_names
|
||||||
- rh_storage_osd_repo.rc != 0
|
- rh_storage_osd_repo.rc != 0
|
||||||
|
|
||||||
- name: check if the red hat storage rados gateway repo is already present
|
- name: check if the red hat storage rados gateway / mds repo is already present
|
||||||
shell: yum --noplugins --cacheonly repolist | grep -sq rhel-7-server-rhceph-{{ ceph_rhcs_version }}-tools-rpms
|
shell: yum --noplugins --cacheonly repolist | grep -sq rhel-7-server-rhceph-{{ ceph_rhcs_version }}-tools-rpms
|
||||||
changed_when: false
|
changed_when: false
|
||||||
failed_when: false
|
failed_when: false
|
||||||
register: rh_storage_rgw_repo
|
register: rh_storage_rgw_mds_repo
|
||||||
always_run: true
|
always_run: true
|
||||||
when: rgw_group_name in group_names
|
when: (rgw_group_name in group_names or mds_group_name in group_names)
|
||||||
|
|
||||||
- name: enable red hat storage rados gateway repository
|
- name: enable red hat storage rados gateway / mds repository
|
||||||
command: subscription-manager repos --enable rhel-7-server-rhceph-{{ ceph_rhcs_version }}-tools-rpms
|
command: subscription-manager repos --enable rhel-7-server-rhceph-{{ ceph_rhcs_version }}-tools-rpms
|
||||||
changed_when: false
|
changed_when: false
|
||||||
when:
|
when:
|
||||||
- rgw_group_name in group_names
|
- (rgw_group_name in group_names or mds_group_name in group_names)
|
||||||
- rh_storage_rgw_repo.rc != 0
|
- rh_storage_rgw_mds_repo.rc != 0
|
||||||
|
|
Loading…
Reference in New Issue