From: Kevin Coakley Date: Mon, 3 Aug 2020 17:03:34 +0000 (-0700) Subject: Remove ceph-radosgw.target when switching to containerize daemons X-Git-Tag: v4.0.28~9 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=659262f68719764e0ed4b470bdbe00100842bbc0;p=ceph-ansible.git 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 (cherry picked from commit d19e6033b227c621b6c794db4f571151e5bbf9c4) --- 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 2b5382a28..56802d369 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 @@ -434,10 +434,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