mirror of
https://github.com/geerlingguy/ansible-role-docker.git
synced 2024-11-18 19:10:43 +01:00
This commit is contained in:
parent
4a71ec75cb
commit
d8a4438b3c
10
tasks/docker-1809-shim.yml
Normal file
10
tasks/docker-1809-shim.yml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
---
|
||||||
|
- 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
|
@ -11,6 +11,10 @@
|
|||||||
state: "{{ docker_package_state }}"
|
state: "{{ docker_package_state }}"
|
||||||
notify: restart docker
|
notify: restart docker
|
||||||
|
|
||||||
|
# TODO: Remove this shim once 18.09.1 or later is released.
|
||||||
|
- import_tasks: docker-1809-shim.yml
|
||||||
|
when: ansible_service_mgr == 'systemd'
|
||||||
|
|
||||||
- name: Ensure Docker is started and enabled at boot.
|
- name: Ensure Docker is started and enabled at boot.
|
||||||
service:
|
service:
|
||||||
name: docker
|
name: docker
|
||||||
|
2
templates/override.conf.j2
Normal file
2
templates/override.conf.j2
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
[Service]
|
||||||
|
ExecStartPre=
|
Loading…
Reference in New Issue
Block a user