state: stopped
enabled: no
+ - name: remove old systemd unit files
+ file:
+ path: /usr/lib/systemd/system/{{ item }}
+ state: absent
+ with_items:
+ - ceph-mon@.service
+ - ceph-mon.target
+
- name: set_fact ceph_uid for ubuntu
set_fact:
ceph_uid: 64045
enabled: no
failed_when: false
+ - name: remove old systemd unit files
+ file:
+ path: /usr/lib/systemd/system/{{ item }}
+ state: absent
+ with_items:
+ - ceph-mgr@.service
+ - ceph-mgr.target
+
- set_fact:
ceph_uid: 64045
when: ceph_docker_image_tag | string is match("latest") or ceph_docker_image_tag | string is search("ubuntu")
- /usr/lib/systemd/system/ceph-osd.target
- /usr/lib/systemd/system/ceph-osd@.service
- /usr/lib/systemd/system/ceph-volume@.service
- - /etc/systemd/system/ceph.target.wants
- set_fact:
ceph_uid: 64045
state: stopped
enabled: no
+ - name: remove old systemd unit files
+ file:
+ path: /usr/lib/systemd/system/{{ item }}
+ state: absent
+ with_items:
+ - ceph-mds@.service
+ - ceph-mds.target
+
- set_fact:
ceph_uid: 64045
when: ceph_docker_image_tag | string is match("latest") or ceph_docker_image_tag | string is search("ubuntu")
state: stopped
enabled: no
+ - name: remove old systemd unit file
+ file:
+ path: /usr/lib/systemd/system/ceph-radosgw@.service
+ state: absent
+
- set_fact:
ceph_uid: 64045
when: ceph_docker_image_tag | string is match("latest") or ceph_docker_image_tag | string is search("ubuntu")
state: stopped
enabled: no
+ - name: remove old systemd unit files
+ file:
+ path: /usr/lib/systemd/system/{{ item }}
+ state: absent
+ with_items:
+ - ceph-rbd-mirror@.service
+ - ceph-rbd-mirror.target
+
- set_fact:
ceph_uid: 64045
when: ceph_docker_image_tag | string is match("latest") or ceph_docker_image_tag | string is search("ubuntu")