From e98942dc969d4e620313f00f003a7ea2eab67e86 Mon Sep 17 00:00:00 2001 From: Marin van Beek Date: Tue, 27 Oct 2015 12:37:44 +0100 Subject: [PATCH] quotes variable ansistrano_rsync_extra_params The extra rsync parameters shouldn't be checked by ansible. For example, it wasn't possible to use multiple --include parameters (which is supported by rsync), because ansible complained about double parameters. --- tasks/update-code/rsync.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/update-code/rsync.yml b/tasks/update-code/rsync.yml index d2ab759..98a2e2d 100644 --- a/tasks/update-code/rsync.yml +++ b/tasks/update-code/rsync.yml @@ -4,7 +4,7 @@ register: ansistrano_shared_rsync_copy_path - name: ANSISTRANO | RSYNC | Rsync application files to remote shared copy - synchronize: src={{ ansistrano_deploy_from }} dest={{ ansistrano_shared_rsync_copy_path.stdout }} set_remote_user={{ ansistrano_rsync_set_remote_user }} recursive=yes delete=yes archive=yes compress=yes rsync_opts={{ ansistrano_rsync_extra_params }} + synchronize: src={{ ansistrano_deploy_from }} dest={{ ansistrano_shared_rsync_copy_path.stdout }} set_remote_user={{ ansistrano_rsync_set_remote_user }} recursive=yes delete=yes archive=yes compress=yes rsync_opts="{{ ansistrano_rsync_extra_params }}" - name: ANSISTRANO | RSYNC | Deploy existing code to servers command: cp -pr {{ ansistrano_shared_rsync_copy_path.stdout }} {{ ansistrano_release_path.stdout }}