1
0
Fork 0

First version of budget collection
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

Signed-off-by: Nis Wechselberg <enbewe@enbewe.de>
This commit is contained in:
Nis Wechselberg 2025-05-11 16:56:16 +02:00
parent 771b79de29
commit 8cc372f16b
Signed by: enbewe
GPG key ID: 7B25171F921B9E57
8 changed files with 210 additions and 0 deletions

View file

@ -0,0 +1,51 @@
---
- name: 'Ensure needed software is installed'
become: true
ansible.builtin.apt:
name: 'podman'
state: 'present'
- name: 'Prepare budget network'
become: true
containers.podman.podman_network:
name: '{{ budget_network }}'
ipv6: true
state: 'quadlet'
notify:
- 'Reload budget services'
- 'Restart budget network'
- name: 'Define budget image'
become: true
containers.podman.podman_image:
name: '{{ budget_image_name }}:{{ budget_image_tag }}'
state: 'quadlet'
notify:
- 'Reload budget services'
- 'Restart budget image'
- name: 'Prepare budget data files location'
become: true
ansible.builtin.file:
path: '{{ budget_data_location }}'
state: 'directory'
owner: 'root'
group: 'root'
mode: 'u=rwx,g=rx,o=rx'
- name: 'Create budget container'
become: true
containers.podman.podman_container:
name: '{{ budget_container_name }}'
image: 'actual-server.image'
network: '{{ budget_network }}.network'
state: 'quadlet'
volume:
- '{{ budget_data_location }}:/data'
env: '{{ budget_app_environments }}'
quadlet_options: |
[Install]
WantedBy=default.target
notify:
- 'Reload budget services'
- 'Restart budget container'