Browse Source

cri-dockerd: add restart of docker.service (#9205)

* cri-dockerd: add restart of docker.service

* remove enabling of cri-dockerd.socket
pull/8923/head
Krystian Młynek 2 years ago
committed by GitHub
parent
commit
64daaf1887
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions
  1. 6
      roles/container-engine/cri-dockerd/handlers/main.yml
  2. 3
      roles/container-engine/cri-dockerd/tasks/main.yml

6
roles/container-engine/cri-dockerd/handlers/main.yml

@ -3,6 +3,7 @@
command: /bin/true
notify:
- cri-dockerd | reload systemd
- cri-dockerd | restart docker.service
- cri-dockerd | reload cri-dockerd.socket
- cri-dockerd | reload cri-dockerd.service
- cri-dockerd | enable cri-dockerd service
@ -13,6 +14,11 @@
daemon_reload: true
masked: no
- name: cri-dockerd | restart docker.service
service:
name: docker.service
state: restarted
- name: cri-dockerd | reload cri-dockerd.socket
service:
name: cri-dockerd.socket

3
roles/container-engine/cri-dockerd/tasks/main.yml

@ -23,3 +23,6 @@
- cri-dockerd.socket
notify:
- restart and enable cri-dockerd
- name: Flush handlers
meta: flush_handlers
Loading…
Cancel
Save