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
This commit is contained in:
Monty Taylor 2018-08-17 13:58:25 -05:00
parent 7fc585e1ab
commit ffbb43a218
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594
1 changed files with 5 additions and 0 deletions

View File

@ -71,6 +71,11 @@
- block:
- name: Ensure target directory exists
file:
path: "{{ manifest_base }}"
state: directory
- name: copy puppet modules
synchronize:
src: "{{ mgmt_manifestpath }}"