Browse Source

🌱 Enable cri-dockerd service (#9201)

* 🌱 Enable cri-dockerd service

* 🔨 Fix the task name in order to pass the CI tests
pull/9207/head
Mostafa Ghadimi 2 years ago
committed by GitHub
parent
commit
386c739d5b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 3 deletions
  1. 8
      roles/container-engine/cri-dockerd/handlers/main.yml
  2. 4
      roles/container-engine/cri-dockerd/tasks/main.yml

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

@ -1,10 +1,11 @@
---
- name: restart cri-dockerd
- name: restart and enable cri-dockerd
command: /bin/true
notify:
- cri-dockerd | reload systemd
- cri-dockerd | reload cri-dockerd.socket
- cri-dockerd | reload cri-dockerd.service
- cri-dockerd | enable cri-dockerd service
- name: cri-dockerd | reload systemd
systemd:
@ -21,3 +22,8 @@
service:
name: cri-dockerd.service
state: restarted
- name: cri-dockerd | enable cri-dockerd service
service:
name: cri-dockerd.service
enabled: yes

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

@ -11,7 +11,7 @@
mode: 0755
remote_src: true
notify:
- restart cri-dockerd
- restart and enable cri-dockerd
- name: Generate cri-dockerd systemd unit files
template:
@ -22,4 +22,4 @@
- cri-dockerd.service
- cri-dockerd.socket
notify:
- restart cri-dockerd
- restart and enable cri-dockerd
Loading…
Cancel
Save