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 2022-08-24 14:50:02 +02:00 committed by GitHub
parent 1c75ec9ec1
commit 64daaf1887
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View File

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

View File

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