You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
557 B
YAML
25 lines
557 B
YAML
2 years ago
|
- 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
|
||
|
ansible.builtin.copy:
|
||
|
src: containerd_config.toml
|
||
|
dest: /etc/containerd/config.toml
|
||
|
mode: u=rw,g=r,o=r
|
||
|
notify: restart_containerd
|