From 63fd0308317be959cc8b7c014f06a9572cddb744 Mon Sep 17 00:00:00 2001 From: Olivier Clavel Date: Wed, 3 Oct 2018 15:58:50 +0200 Subject: [PATCH] Create temp archive in /tmp for scripts Fixes #119 --- .gitignore | 2 -- tasks/nexus_install.yml | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 14601bd2..3381edfa 100644 --- a/.gitignore +++ b/.gitignore @@ -9,5 +9,3 @@ molecule/custom_env.yml README.md.orig.* README.md.toc.* *.pyc - -groovy-scripts.tar.gz diff --git a/tasks/nexus_install.yml b/tasks/nexus_install.yml index 097678a1..1bf13c13 100644 --- a/tasks/nexus_install.yml +++ b/tasks/nexus_install.yml @@ -420,12 +420,12 @@ local_action: module: archive path: "{{ role_path }}/files/groovy/*" - dest: "{{ role_path }}/groovy-scripts.tar.gz" + dest: "/tmp/nexus-upload-groovy-scripts.tar.gz" run_once: true - name: Upload new scripts unarchive: - src: "{{ role_path }}/groovy-scripts.tar.gz" + src: "/tmp/nexus-upload-groovy-scripts.tar.gz" dest: "{{ nexus_data_dir }}/groovy-raw-scripts/new/" - name: Sync new scripts to old and get differences