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=