From fa1a56824eb6caf18872a01095094aa2702a5fc0 Mon Sep 17 00:00:00 2001 From: Jeff Geerling Date: Mon, 12 Nov 2018 21:28:36 -0600 Subject: [PATCH] Fixes #97, Mentions #98, Still makes me sade: Fix Docker 18.09.0 startup issue. --- tasks/docker-1809-shim.yml | 6 ++++++ templates/override.conf.j2 | 1 + 2 files changed, 7 insertions(+) diff --git a/tasks/docker-1809-shim.yml b/tasks/docker-1809-shim.yml index f59f85a..286254b 100644 --- a/tasks/docker-1809-shim.yml +++ b/tasks/docker-1809-shim.yml @@ -8,3 +8,9 @@ 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 diff --git a/templates/override.conf.j2 b/templates/override.conf.j2 index 76864e2..adab53c 100644 --- a/templates/override.conf.j2 +++ b/templates/override.conf.j2 @@ -1,2 +1,3 @@ +# {{ ansible_managed }} [Service] ExecStartPre=