Ensure containerd service unmasking (#8726)
* Force containerd service unmasking Force systemd to unmask and start service when adding containerd service * Eliminate restart and move unmasking step Switch to start instead of restart Move unmasking to restart handler * Add unmasking to similar container runtimes * Add missing service names
This commit is contained in:
parent
fcb4c8fb61
commit
21fc197ee0
4 changed files with 7 additions and 1 deletions
|
@ -11,6 +11,7 @@
|
||||||
state: restarted
|
state: restarted
|
||||||
enabled: yes
|
enabled: yes
|
||||||
daemon-reload: yes
|
daemon-reload: yes
|
||||||
|
masked: no
|
||||||
|
|
||||||
- name: Containerd | wait for containerd
|
- name: Containerd | wait for containerd
|
||||||
command: "{{ containerd_bin_dir }}/ctr images ls -q"
|
command: "{{ containerd_bin_dir }}/ctr images ls -q"
|
||||||
|
|
|
@ -98,7 +98,8 @@
|
||||||
meta: flush_handlers
|
meta: flush_handlers
|
||||||
|
|
||||||
- name: containerd | Ensure containerd is started and enabled
|
- name: containerd | Ensure containerd is started and enabled
|
||||||
service:
|
systemd:
|
||||||
name: containerd
|
name: containerd
|
||||||
|
daemon_reload: yes
|
||||||
enabled: yes
|
enabled: yes
|
||||||
state: started
|
state: started
|
||||||
|
|
|
@ -8,7 +8,9 @@
|
||||||
|
|
||||||
- name: cri-dockerd | reload systemd
|
- name: cri-dockerd | reload systemd
|
||||||
systemd:
|
systemd:
|
||||||
|
name: cri-dockerd
|
||||||
daemon_reload: true
|
daemon_reload: true
|
||||||
|
masked: no
|
||||||
|
|
||||||
- name: cri-dockerd | reload cri-dockerd.socket
|
- name: cri-dockerd | reload cri-dockerd.socket
|
||||||
service:
|
service:
|
||||||
|
|
|
@ -9,7 +9,9 @@
|
||||||
|
|
||||||
- name: Docker | reload systemd
|
- name: Docker | reload systemd
|
||||||
systemd:
|
systemd:
|
||||||
|
name: docker
|
||||||
daemon_reload: true
|
daemon_reload: true
|
||||||
|
masked: no
|
||||||
|
|
||||||
- name: Docker | reload docker.socket
|
- name: Docker | reload docker.socket
|
||||||
service:
|
service:
|
||||||
|
|
Loading…
Reference in a new issue