From ffbb43a21882ef2dfbf30e64d8a15c56e3c29c20 Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Fri, 17 Aug 2018 13:58:25 -0500 Subject: [PATCH] Make sure target manifest directory exists On a bare system, bridge.o.o will be trying to rsync /opt/system-config/ to /opt/system-config/production - but if /opt/system-config doesn't exist on the remote host, the rsync will fail. Make sure we create the directory. Change-Id: Id56a537fe2352c099b81559eb4032138ba108bed --- tasks/main.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tasks/main.yaml b/tasks/main.yaml index 10a4c6b..368eb2a 100644 --- a/tasks/main.yaml +++ b/tasks/main.yaml @@ -71,6 +71,11 @@ - block: + - name: Ensure target directory exists + file: + path: "{{ manifest_base }}" + state: directory + - name: copy puppet modules synchronize: src: "{{ mgmt_manifestpath }}"