From 4032f102fe0285344e1ff960cab806f46977c76f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Han?= Date: Mon, 9 Oct 2017 15:30:54 +0200 Subject: [PATCH] iscsi: move package install to ceph-iscsi-role MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Sébastien Han --- .../tasks/installs/install_redhat_packages.yml | 11 ----------- roles/ceph-iscsi-gw/tasks/prerequisites.yml | 11 +++++++++++ 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/roles/ceph-common/tasks/installs/install_redhat_packages.yml b/roles/ceph-common/tasks/installs/install_redhat_packages.yml index 31c749c3d..8154a054f 100644 --- a/roles/ceph-common/tasks/installs/install_redhat_packages.yml +++ b/roles/ceph-common/tasks/installs/install_redhat_packages.yml @@ -93,14 +93,3 @@ 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 diff --git a/roles/ceph-iscsi-gw/tasks/prerequisites.yml b/roles/ceph-iscsi-gw/tasks/prerequisites.yml index 6b877100f..3f7ef97a1 100644 --- a/roles/ceph-iscsi-gw/tasks/prerequisites.yml +++ b/roles/ceph-iscsi-gw/tasks/prerequisites.yml @@ -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