From: Guillaume Abrioux Date: Thu, 29 Nov 2018 16:52:18 +0000 (+0100) Subject: purge: add iscsi support X-Git-Tag: v3.2.0rc8~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e37a90b5ec7efdd73e35ec5ef3ff63a47861429a;p=ceph-ansible.git purge: add iscsi support add iscsi support for both non containerized and containerized deployment in purge playbooks. Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1651054 Signed-off-by: Guillaume Abrioux (cherry picked from commit 78116fa6dbe269d1319213251b01e43f1b8f3cff) --- diff --git a/infrastructure-playbooks/purge-docker-cluster.yml b/infrastructure-playbooks/purge-docker-cluster.yml index 570085334..615c990af 100644 --- a/infrastructure-playbooks/purge-docker-cluster.yml +++ b/infrastructure-playbooks/purge-docker-cluster.yml @@ -73,6 +73,57 @@ remove_img ignore_errors: true +- name: purge ceph iscsigws cluster + + hosts: + - "{{ iscsi_gw_group_name|default('iscsigws') }}" + - iscsi-gws + become: true + tasks: + + - name: disable ceph iscsigw services + service: + name: "{{ item }}" + state: stopped + enabled: no + ignore_errors: true + with_items: + - rbd-target-api + - rbd-target-gw + - tcmu-runner + + - name: remove ceph iscsigw containers + docker_container: + image: "{{ ceph_docker_registry }}/{{ ceph_docker_image }}:{{ ceph_docker_image_tag }}" + name: "{{ item }}" + state: absent + ignore_errors: true + with_items: + - rbd-target-api + - rbd-target-gw + - tcmu-runner + + - name: remove ceph iscsigw systemd unit files + file: + path: /etc/systemd/system/{{ item }}.service + state: absent + ignore_errors: true + with_items: + - rbd-target-api + - rbd-target-gw + - tcmu-runner + + - name: remove ceph iscsigw image + docker_image: + state: absent + repository: "{{ ceph_docker_registry }}" + name: "{{ ceph_docker_image }}" + tag: "{{ ceph_docker_image_tag }}" + force: yes + tags: + remove_img + ignore_errors: true + - name: purge ceph mgr cluster hosts: