Setup containerd
parent
c899de75ae
commit
0d2e715980
@ -1,10 +1,24 @@
|
|||||||
|
- name: Check if containerd-service exists & is started
|
||||||
|
service:
|
||||||
|
name: containerd
|
||||||
|
state: started
|
||||||
|
ignore_errors: true
|
||||||
|
register: containerd_status
|
||||||
|
|
||||||
|
- name: Install containerd when not exists
|
||||||
|
package:
|
||||||
|
name:
|
||||||
|
- containerd
|
||||||
|
when: containerd_status is failed
|
||||||
|
|
||||||
|
- name: Create containerd config-folder
|
||||||
|
file:
|
||||||
|
path: /etc/containerd
|
||||||
|
state: directory
|
||||||
|
|
||||||
- name: Deploy containerd-config
|
- name: Deploy containerd-config
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
src: containerd_config.toml
|
src: containerd_config.toml
|
||||||
dest: /etc/containerd/config.toml
|
dest: /etc/containerd/config.toml
|
||||||
mode: u=rw,g=r,o=r
|
mode: u=rw,g=r,o=r
|
||||||
|
notify: restart_containerd
|
||||||
- name: restart_containerd
|
|
||||||
ansible.builtin.service:
|
|
||||||
name: containerd
|
|
||||||
state: restarted
|
|
||||||
|
Loading…
Reference in New Issue