From 7cf1d562aa1f19dd423324c2fd17348ad0ef8e54 Mon Sep 17 00:00:00 2001 From: Mark Chappell Date: Tue, 28 Jun 2022 14:22:48 +0200 Subject: [PATCH] Try unpacking file from archive --- playbooks/ansible-galaxy-importer/run.yaml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/playbooks/ansible-galaxy-importer/run.yaml b/playbooks/ansible-galaxy-importer/run.yaml index aa7fb3ebf..ebc1daffd 100644 --- a/playbooks/ansible-galaxy-importer/run.yaml +++ b/playbooks/ansible-galaxy-importer/run.yaml @@ -11,9 +11,18 @@ file: '{{ _fetch.dest }}' name: galaxy_info + - name: Copy galaxy-importer.cfg to downloads dir + unarchive: + src: "~/downloads/{{ galaxy_info.namespace}}-{{ galaxy_info.name }}-*.tar.gz" + dest: "~/downloads/" + remote_src: true + include: + - "tests/galaxy-importer.cfg" + ignore_errors: true + - name: Confirm collection can be imported into galaxy args: chdir: "~/{{ zuul.projects['github.com/ansible-network/releases'].src_dir }}" shell: "source .tox/venv/bin/activate; cat ${GALAXY_IMPORTER_CONFIG}; ./tools/validate-collection.sh ~/downloads/{{ galaxy_info.namespace}}-{{ galaxy_info.name }}-*.tar.gz" environment: - GALAXY_IMPORTER_CONFIG: "~/{{ zuul.project.src_dir }}/tests/galaxy-importer.cfg" + GALAXY_IMPORTER_CONFIG: "~/downloads/tests/galaxy-importer.cfg"