Test deploy workflow with hard-coded values
This commit is contained in:
@@ -2,15 +2,24 @@
|
|||||||
- name: Deploy BAB Frontend Application
|
- name: Deploy BAB Frontend Application
|
||||||
hosts: bab1.mgmt.toal.ca
|
hosts: bab1.mgmt.toal.ca
|
||||||
become: true
|
become: true
|
||||||
|
vars:
|
||||||
|
artifact_url: https://gitea.toal.ca/oys/bab-app/actions/runs/10/artifacts/build-artifact-0.0.2.10
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Ensure rsync is installed on RHEL9 host
|
- name: Download zip file from url
|
||||||
ansible.builtin.package:
|
ansible.builtin.get_url:
|
||||||
name: rsync
|
url: "{{ artifact_url }}"
|
||||||
state: present
|
dest: /tmp/BABFrontend.zip
|
||||||
|
mode: '0644'
|
||||||
|
|
||||||
- name: Synchronize local directory to remote, deleting missing files
|
- name: Unzip file to temp directory
|
||||||
ansible.posix.synchronize:
|
ansible.builtin.unarchive:
|
||||||
src: '{{ bab_app_build_output_dir }}'
|
src: /tmp/BABFrontend.zip
|
||||||
dest: '{{ bab_app_webroot }}'
|
dest: /tmp
|
||||||
delete: true
|
remote_src: true
|
||||||
|
|
||||||
|
- name: Extract tgz file to nginx directory
|
||||||
|
ansible.builtin.unarchive:
|
||||||
|
src: /tmp/build-artifact-0.0.2.10/build-0.0.2.tar.gz
|
||||||
|
dest: /usr/share/nginx/html
|
||||||
|
remote_src: true
|
||||||
|
|||||||
Reference in New Issue
Block a user