feat: refactor service management to use a unified services list and add cleanup tasks
Some checks failed
Ansible Lint Check / check-ansible (push) Failing after 15s
Nix Format Check / check-format (push) Successful in 55s
Python Lint Check / check-python (push) Failing after 12s

This commit is contained in:
2025-03-12 14:31:25 +01:00
parent 451f2b202f
commit 8d2cbdacae
3 changed files with 53 additions and 20 deletions

View File

@@ -1,16 +1,10 @@
---
- name: Include caddy tasks
ansible.builtin.include_tasks: caddy/caddy.yml
when: caddy_enabled|bool
- name: Include golink tasks
ansible.builtin.include_tasks: golink/golink.yml
when: golink_enabled|bool
- name: Include hoarder tasks
ansible.builtin.include_tasks: hoarder/hoarder.yml
when: hoarder_enabled|bool
- name: Include immich tasks
ansible.builtin.include_tasks: immich/immich.yml
when: immich_enabled|bool
- name: Include gitea tasks
ansible.builtin.include_tasks: gitea/gitea.yml
when: gitea_enabled|bool
- name: Include service cleanup tasks
ansible.builtin.include_tasks: service_cleanup.yml
- name: Include service tasks
ansible.builtin.include_tasks: "{{ item.name }}/{{ item.name }}.yml"
loop: "{{ services }}"
when: item.enabled|bool
loop_control:
label: "{{ item.name }}"