feat: replace firefly-iii with actual budget
All checks were successful
Infrastructure / Check and run Ansbile playbooks (push) Successful in 3m44s
All checks were successful
Infrastructure / Check and run Ansbile playbooks (push) Successful in 3m44s
This commit is contained in:
27
infra/finance/0004_actual_playbook.yaml
Normal file
27
infra/finance/0004_actual_playbook.yaml
Normal file
@@ -0,0 +1,27 @@
|
||||
- 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 }}"
|
||||
Reference in New Issue
Block a user