]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
common: add tools repo for iscsi gw
authorSébastien Han <seb@redhat.com>
Thu, 12 Apr 2018 10:15:35 +0000 (12:15 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Thu, 12 Apr 2018 11:38:34 +0000 (13:38 +0200)
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>
roles/ceph-common/tasks/installs/prerequisite_rhcs_cdn_install.yml

index 7dc743f9d7050bc6d6e618122747122c48e9ffd6..b22937f4e8f1536803c459862991cd3c615a1276 100644 (file)
     - 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