Files
bab-backend-ansible/playbooks/deploy_application.yml
2023-12-29 11:43:34 -05:00

20 lines
585 B
YAML

---
- name: Deploy BAB Frontend Application
hosts: bab1.mgmt.toal.ca
become: false
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