]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
iscsi: move package install to ceph-iscsi-role
authorSébastien Han <seb@redhat.com>
Mon, 9 Oct 2017 13:30:54 +0000 (15:30 +0200)
committerSébastien Han <seb@redhat.com>
Mon, 9 Oct 2017 15:25:46 +0000 (17:25 +0200)
Signed-off-by: Sébastien Han <seb@redhat.com>
roles/ceph-common/tasks/installs/install_redhat_packages.yml
roles/ceph-iscsi-gw/tasks/prerequisites.yml

index 31c749c3d175357196f1796078df42f5a07ef122..8154a054f177896dffc077b71e3abc94cea88826 100644 (file)
   when:
     - nfs_group_name in group_names
     - nfs_obj_gw
-
-- name: install redhat ceph iscsi package
-  package:
-    name: "{{ item }}"
-    state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
-  with_items:
-    - tcmu-runner
-    - ceph-iscsi-config
-    - targetcli
-  when:
-    - iscsi_gw_group_name in group_names
index 6b877100fde8515d50ae12600706ddb3b8f15140..3f7ef97a186bd89b7ea4e5c4944f616fd3702c46 100644 (file)
@@ -1,4 +1,15 @@
 ---
+- name: install redhat ceph iscsi package
+  package:
+    name: "{{ item }}"
+    state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
+  with_items:
+    - tcmu-runner
+    - ceph-iscsi-config
+    - targetcli
+  when:
+    - ansible_os_family == 'RedHat'
+
 - name: check the status of the target.service override
   stat:
     path: /etc/systemd/system/target.service