2019-06-30 05:09:20 +08:00
|
|
|
---
|
2019-07-11 14:46:54 +08:00
|
|
|
- name: Containerd | restart containerd
|
2024-07-26 16:11:39 +08:00
|
|
|
systemd_service:
|
2019-06-30 05:09:20 +08:00
|
|
|
name: containerd
|
|
|
|
state: restarted
|
2019-07-11 14:46:54 +08:00
|
|
|
enabled: yes
|
|
|
|
daemon-reload: yes
|
2022-04-29 23:39:14 +08:00
|
|
|
masked: no
|
2023-11-08 19:28:30 +08:00
|
|
|
listen: Restart containerd
|
2019-06-30 05:09:20 +08:00
|
|
|
|
|
|
|
- name: Containerd | wait for containerd
|
|
|
|
command: "{{ containerd_bin_dir }}/ctr images ls -q"
|
|
|
|
register: containerd_ready
|
2019-07-11 14:46:54 +08:00
|
|
|
retries: 8
|
|
|
|
delay: 4
|
2019-06-30 05:09:20 +08:00
|
|
|
until: containerd_ready.rc == 0
|
2023-11-08 19:28:30 +08:00
|
|
|
listen: Restart containerd
|