From d19e6033b227c621b6c794db4f571151e5bbf9c4 Mon Sep 17 00:00:00 2001 From: Kevin Coakley Date: Mon, 3 Aug 2020 10:03:34 -0700 Subject: [PATCH] Remove ceph-radosgw.target when switching to containerize daemons The task "remove old systemd unit file" under "switching from non-containerized to containerized ceph rgw" only removes the ceph-radosgw@.service file. The task should also remove the ceph-radosgw.target file, like the "remove old systemd unit files" tasks for the mons, mgrs, osds, etc, in order to clean up all of the unused systemd unit files. Signed-off-by: Kevin Coakley --- ...rom-non-containerized-to-containerized-ceph-daemons.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/infrastructure-playbooks/switch-from-non-containerized-to-containerized-ceph-daemons.yml b/infrastructure-playbooks/switch-from-non-containerized-to-containerized-ceph-daemons.yml index 5dee84924..9c7aac6e4 100644 --- a/infrastructure-playbooks/switch-from-non-containerized-to-containerized-ceph-daemons.yml +++ b/infrastructure-playbooks/switch-from-non-containerized-to-containerized-ceph-daemons.yml @@ -429,10 +429,13 @@ enabled: no with_items: "{{ rgw_instances }}" - - name: remove old systemd unit file + - name: remove old systemd unit files file: - path: /usr/lib/systemd/system/ceph-radosgw@.service + path: /usr/lib/systemd/system/{{ item }} state: absent + with_items: + - ceph-radosgw@.service + - ceph-radosgw.target - import_role: name: ceph-handler -- 2.39.5