2019-06-30 05:09:20 +08:00
|
|
|
---
|
|
|
|
- name: restart containerd
|
|
|
|
command: /bin/true
|
|
|
|
notify:
|
2019-07-11 14:46:54 +08:00
|
|
|
- Containerd | restart containerd
|
2019-06-30 05:09:20 +08:00
|
|
|
- Containerd | wait for containerd
|
|
|
|
|
2019-07-11 14:46:54 +08:00
|
|
|
- name: Containerd | restart containerd
|
|
|
|
systemd:
|
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
|
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
|