common: add tools repo for iscsi gw

To install iscsi gw packages we need to enable the tools repo.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1547849
Signed-off-by: Sébastien Han <seb@redhat.com>
pull/2512/head
Sébastien Han 2018-04-12 12:15:35 +02:00 committed by Guillaume Abrioux
parent c8573fe0d7
commit 37117071eb
1 changed files with 6 additions and 6 deletions

View File

@ -31,18 +31,18 @@
- osd_group_name in group_names
- rhcs_osd_repo.rc != 0
- name: check if the red hat storage rados gateway / mds repo is already present
- name: check if the red hat storage tools repo is already present
shell: yum --noplugins --cacheonly repolist | grep -sq rhel-7-server-rhceph-{{ ceph_rhcs_version }}-tools-rpms
changed_when: false
failed_when: false
register: rhcs_rgw_mds_nfs_repo
register: rhcs_tools_repo
check_mode: no
when:
- (rgw_group_name in group_names or mds_group_name in group_names or nfs_group_name in group_names)
- (rgw_group_name in group_names or mds_group_name in group_names or nfs_group_name in group_names or iscsi_gw_group_name in group_names)
- name: enable red hat storage rados gateway / mds repository
- name: enable red hat storage tools repository
command: subscription-manager repos --enable rhel-7-server-rhceph-{{ ceph_rhcs_version }}-tools-rpms
changed_when: false
when:
- (rgw_group_name in group_names or mds_group_name in group_names or nfs_group_name in group_names)
- rhcs_rgw_mds_nfs_repo.rc != 0
- (rgw_group_name in group_names or mds_group_name in group_names or nfs_group_name in group_names or iscsi_gw_group_name in group_names)
- rhcs_tools_repo.rc != 0