Rearrange playbooks. Add EDA
This commit is contained in:
23
playbooks/deploy_application.yml
Normal file
23
playbooks/deploy_application.yml
Normal file
@@ -0,0 +1,23 @@
|
||||
---
|
||||
- name: Deploy BAB Frontend Application
|
||||
hosts: bab1.mgmt.toal.ca
|
||||
become: false
|
||||
vars:
|
||||
artifact_version: 0.0.2
|
||||
artifact_job: 11
|
||||
artifact_url: https://gitea.toal.ca/oys/bab-app/actions/runs/{{ artifact_job }}/artifacts/build-artifact-{{ artifact_version }}.{{ artifact_job }}
|
||||
tasks:
|
||||
- name: Download zip file from url
|
||||
ansible.builtin.get_url:
|
||||
url: "{{ artifact_url }}"
|
||||
dest: /tmp/BABFrontend.zip
|
||||
mode: '0644'
|
||||
|
||||
# Temporary until this drops: https://github.com/ansible/ansible/issues/81092
|
||||
- name: Unzip file to web dir
|
||||
ansible.builtin.command: unzip -o /tmp/BABFrontend.zip -d /usr/share/nginx/html/
|
||||
|
||||
- name: Clean up artifact download
|
||||
ansible.builtin.file:
|
||||
path: /tmp/BABFrontend.zip
|
||||
state: absent
|
||||
Reference in New Issue
Block a user