Skip to content

Commit

Permalink
rm orphaned runc and containerd binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
mafn committed Oct 25, 2021
1 parent 169974f commit 2583df6
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
13 changes: 13 additions & 0 deletions roles/container-engine/containerd/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,19 @@
- --strip-components=1
notify: restart containerd

- name: containerd | Remove orphaned binary
file:
path: "/usr/bin/{{ item }}"
state: absent
when: "{{ containerd_bin_dir != /usr/bin }}"
ignore_errors: true # noqa ignore-errors
with_items:
- containerd
- containerd-shim
- containerd-shim-runc-v1
- containerd-shim-runc-v2
- ctr

- name: containerd | Generate systemd service for containerd
template:
src: containerd.service.j2
Expand Down
7 changes: 7 additions & 0 deletions roles/container-engine/runc/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,10 @@
dest: "{{ runc_bin_dir }}/runc"
mode: 0755
remote_src: true

- name: runc | Remove orphaned binary
file:
path: /usr/bin/runc
state: absent
when: "{{ runc_bin_dir != /usr/bin }}"
ignore_errors: true # noqa ignore-errors

0 comments on commit 2583df6

Please sign in to comment.