tasks:
-# For backward compatibility
- - name: disable ceph rgw service (old unit name, for backward compatibility)
- service:
- name: "ceph-rgw@{{ ansible_hostname }}"
- state: stopped
- enabled: no
- ignore_errors: true
-
- - name: disable ceph rgw service (new unit name)
+ - name: disable ceph rgw service
service:
name: "ceph-radosgw@*"
state: stopped
- name: remove ceph rgw service
file:
- path: "{{ item }}"
+ path: /etc/systemd/system/ceph-radosgw@.service
state: absent
- with_items:
-# For backward compatibility
- - /etc/systemd/system/ceph-rgw@.service
- - /etc/systemd/system/ceph-radosgw@.service
- name: remove ceph rgw image
docker_image:
- "{{ mgr_group_name|default('mgrs') }}"
- grafana-server
- iscsigws
- - iscsi-gws # for backward compatibility only!
- clients
gather_facts: false
- name: stopping the gateways
hosts:
- iscsigws
- - iscsi-gws # for backward compatibility only!
become: yes
vars:
- igw_purge_type: "{{hostvars['localhost']['igw_purge_type']}}"
- name: removing the gateway configuration
hosts:
- iscsigws
- - iscsi-gws # for backward compatibility only!
become: yes
vars:
- igw_purge_type: "{{ hostvars['localhost']['igw_purge_type'] }}"