create systemd drop-in path if not existent

This commit is contained in:
Spencer Smith 2016-12-21 13:06:12 -05:00
parent 29358c08c6
commit 3575f890fc

View file

@ -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