Files
kovalhome/infra/finance/0003_firefly-iii_playbook.yaml
Gleb Koval 76d4dfa11d
All checks were successful
Infrastructure / Check and run Ansbile playbooks (push) Successful in 3m44s
feat: replace firefly-iii with actual budget
2026-03-09 22:58:25 +00:00

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