Files
kovalhome/infra/finance/0004_actual_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

28 lines
709 B
YAML

- name: Deploy app
hosts: finance
gather_facts: false
vars:
app: actual
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: Copy project
ansible.builtin.copy:
src: "./{{ app }}"
dest: "$HOME"
mode: "0744"
- name: Docker compose up
community.docker.docker_compose_v2:
project_src: "$HOME/{{ app }}"