refactor: Use new release process

This commit is contained in:
2024-06-24 10:20:55 -04:00
parent 025cd8a289
commit 8db9058eb7

View File

@@ -9,24 +9,15 @@
suffix: .deploy suffix: .deploy
register: tempdir register: tempdir
- name: Download zip file from url - name: Download tar.gz file from url
ansible.builtin.get_url: ansible.builtin.get_url:
url: "{{ artifact_url }}" url: "{{ artifact_url }}"
dest: /{{ tempdir.path }}/BABFrontend.zip dest: "/{{ tempdir.path }}/bab-release.tar.gz"
mode: '0644' 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/ - name: Extract tar into /usr/share/nginx/html/
ansible.builtin.unarchive: 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/ dest: /usr/share/nginx/html/
remote_src: true remote_src: true