From: Sébastien Han Date: Mon, 9 Oct 2017 13:30:54 +0000 (+0200) Subject: iscsi: move package install to ceph-iscsi-role X-Git-Tag: v3.0.0rc19^2~2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=4032f102fe0285344e1ff960cab806f46977c76f;p=ceph-ansible.git iscsi: move package install to ceph-iscsi-role Signed-off-by: Sébastien Han --- 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