All checks were successful
Infrastructure / Check and run Ansbile playbooks (push) Successful in 3m44s
26 lines
673 B
YAML
26 lines
673 B
YAML
- name: Deploy app
|
|
hosts: finance
|
|
gather_facts: false
|
|
vars:
|
|
app: firefly-iii
|
|
tasks:
|
|
- name: Wait for connection
|
|
ansible.builtin.wait_for_connection:
|
|
timeout: 300
|
|
|
|
- name: Check if project exists
|
|
ansible.builtin.stat:
|
|
path: "$HOME/{{ app }}"
|
|
register: project
|
|
- name: Docker compose down
|
|
when: project.stat.exists
|
|
community.docker.docker_compose_v2:
|
|
project_src: "$HOME/{{ app }}"
|
|
state: absent
|
|
- name: Remove project directory
|
|
when: project.stat.exists
|
|
ansible.builtin.file:
|
|
path: "$HOME/{{ app }}"
|
|
state: absent
|
|
# Note: we keep db data, just-in-case
|