From f2765e7403503d5b2b479b7cbb376299094c1916 Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Thu, 11 Feb 2016 15:25:43 +0100 Subject: [PATCH] WebService : add option to omit dir time on rsync --- apps/webservice/deploy.yml | 2 +- apps/webservice/tasks/after-setup.yml | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/apps/webservice/deploy.yml b/apps/webservice/deploy.yml index 126d75c..4824bca 100644 --- a/apps/webservice/deploy.yml +++ b/apps/webservice/deploy.yml @@ -17,7 +17,7 @@ ansistrano_deploy_via: rsync ansistrano_allow_anonymous_stats: yes # Variables used in the rsync deployment strategy - ansistrano_rsync_extra_params: "" + ansistrano_rsync_extra_params: "--omit-dir-times" ansistrano_rsync_set_remote_user: yes # Variables used in the Git deployment strategy #ansistrano_git_repo: ssh://git@192.168.78.249:10022/SCORES/flux.git diff --git a/apps/webservice/tasks/after-setup.yml b/apps/webservice/tasks/after-setup.yml index ed732ce..9f1289b 100644 --- a/apps/webservice/tasks/after-setup.yml +++ b/apps/webservice/tasks/after-setup.yml @@ -1,7 +1,3 @@ - name: Authorize deploy user to write in "ansistrano_deploy_to" become: yes - file: path="{{ ansistrano_deploy_to }}" state=directory mode="u=rwx,g=rwx,o=rx" - -- name: Authorize deploy user to write in "ansistrano_shared_path.stdout" - become: yes - file: path="{{ ansistrano_shared_path.stdout }}/.shared-copy" state=directory owner=deploy mode="u=rwx,g=rwx,o=rx" \ No newline at end of file + file: path="{{ ansistrano_deploy_to }}" state=directory mode="u=rwx,g=rwx,o=rx" \ No newline at end of file