From 3575f890fc85a04f1ca0dc36758fcf1146b126c5 Mon Sep 17 00:00:00 2001 From: Spencer Smith Date: Wed, 21 Dec 2016 13:06:12 -0500 Subject: [PATCH] create systemd drop-in path if not existent --- roles/network_plugin/flannel/tasks/main.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/roles/network_plugin/flannel/tasks/main.yml b/roles/network_plugin/flannel/tasks/main.yml index 4dde123ae..e6866af31 100644 --- a/roles/network_plugin/flannel/tasks/main.yml +++ b/roles/network_plugin/flannel/tasks/main.yml @@ -70,6 +70,13 @@ - Flannel | restart docker when: ansible_service_mgr in ["sysvinit","upstart"] +- name: Flannel | Ensure path for docker network systemd drop-in + file: + path: "/etc/systemd/system/docker.service.d" + state: directory + owner: root + when: ansible_service_mgr == "systemd" + - name: Flannel | Create docker network systemd drop-in template: src: flannel-options.conf.j2