From 4313255c414250676d3fc38c27f60f22f46f6fc4 Mon Sep 17 00:00:00 2001 From: Ricardo Carrillo Cruz Date: Wed, 29 Apr 2015 14:35:39 +0200 Subject: [PATCH] Create /opt/system-config/production folder on puppetmaster This has to be created prior to synchronize, otherwise it fails --- roles/bootstrap_puppetmaster/tasks/rsync_system_config.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/roles/bootstrap_puppetmaster/tasks/rsync_system_config.yml b/roles/bootstrap_puppetmaster/tasks/rsync_system_config.yml index 86df692..7771790 100644 --- a/roles/bootstrap_puppetmaster/tasks/rsync_system_config.yml +++ b/roles/bootstrap_puppetmaster/tasks/rsync_system_config.yml @@ -1,4 +1,6 @@ --- +- file: path=/opt/system-config/production state=directory + # Synchronize system-config from local to dest machine -- synchronize: src=/tmp/infra-ansible/system-config dest=/opt/system-config/production +- synchronize: src=/tmp/infra-ansible/system-config/production dest=/opt/system-config/production tags: rsync_system_config