2018-11-13 04:14:20 +01:00
|
|
|
---
|
|
|
|
- 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
|
2018-11-13 04:28:36 +01:00
|
|
|
register: override_template
|
|
|
|
|
|
|
|
- name: Reload systemd daemon if template is changed.
|
|
|
|
systemd:
|
|
|
|
daemon_reload: true
|
|
|
|
when: override_template is changed
|