From 32eeb9a0e0cdab34849934b885a58f5cfdadafa4 Mon Sep 17 00:00:00 2001 From: heping Date: Fri, 12 Jan 2018 10:56:25 +0800 Subject: [PATCH] Restart docker when http-proxy.conf changed. --- roles/docker/tasks/systemd.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/docker/tasks/systemd.yml b/roles/docker/tasks/systemd.yml index 86fb45d86..90425fed2 100644 --- a/roles/docker/tasks/systemd.yml +++ b/roles/docker/tasks/systemd.yml @@ -8,6 +8,7 @@ template: src: http-proxy.conf.j2 dest: /etc/systemd/system/docker.service.d/http-proxy.conf + notify: restart docker when: http_proxy is defined or https_proxy is defined - name: get systemd version