From 552470aa77c324df762e3cf0f2b45e95f37d3f87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Leo=CC=81n?= Date: Mon, 28 Nov 2016 14:02:49 +0100 Subject: [PATCH] Ensure unit file folder is present in Debian 8 Some systems come with the /usr/lib/systemd/system directory. Some others don't. Ensuring with this commit that we always have this directory present, otherwise the placing of the Docker unit file may fail and, in consequence, the rest of the play. --- tasks/main.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tasks/main.yml b/tasks/main.yml index f166910..78b0c69 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -19,6 +19,11 @@ notify: - restart docker +- name: ensure unit file folder is present + file: + path: /usr/lib/systemd/system + state: directory + - name: ensure unit file is present & up to date copy: src: docker.service