From 8db9058eb76577d3f26aab5f3da15030c6801c83 Mon Sep 17 00:00:00 2001 From: Patrick Toal Date: Mon, 24 Jun 2024 10:20:55 -0400 Subject: [PATCH] refactor: Use new release process --- playbooks/deploy_application.yml | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/playbooks/deploy_application.yml b/playbooks/deploy_application.yml index d9c8856..d1d4d26 100644 --- a/playbooks/deploy_application.yml +++ b/playbooks/deploy_application.yml @@ -9,24 +9,15 @@ suffix: .deploy register: tempdir - - name: Download zip file from url + - name: Download tar.gz file from url ansible.builtin.get_url: url: "{{ artifact_url }}" - dest: /{{ tempdir.path }}/BABFrontend.zip + dest: "/{{ tempdir.path }}/bab-release.tar.gz" mode: '0644' - # Temporary until this drops: https://github.com/ansible/ansible/issues/81092 - - name: Unzip downloaded file - ansible.builtin.unarchive: - src: "{{ tempdir.path }}/BABFrontend.zip" - dest: "{{ tempdir.path }}" - list_files: true - remote_src: true - register: unzip_result - - name: Extract tar into /usr/share/nginx/html/ ansible.builtin.unarchive: - src: "{{ unzip_result.dest }}/{{ unzip_result.files[0] }}" # We expect exactly one tar file to be in the artifact. + src: "/{{ tempdir.path }}/bab-release.tar.gz" dest: /usr/share/nginx/html/ remote_src: true