mirror of
https://github.com/Maks1mS/ansible-role-docker.git
synced 2024-12-24 16:44:41 +03:00
17 lines
456 B
YAML
17 lines
456 B
YAML
---
|
|
- name: Ensure containerd service dir exists.
|
|
file:
|
|
path: /etc/systemd/system/containerd.service.d
|
|
state: directory
|
|
|
|
- name: Add shim to ensure Docker can start in all environments.
|
|
template:
|
|
src: override.conf.j2
|
|
dest: /etc/systemd/system/containerd.service.d/override.conf
|
|
register: override_template
|
|
|
|
- name: Reload systemd daemon if template is changed.
|
|
systemd:
|
|
daemon_reload: true
|
|
when: override_template is changed
|