refactor: update service task loops and Docker network names for consistency; adjust volume paths for Jellyfin service
Some checks failed
Ansible Lint Check / check-ansible (push) Failing after 26s
Nix Format Check / check-format (push) Failing after 1m26s
Python Lint Check / check-python (push) Failing after 21s

This commit is contained in:
2025-07-16 01:44:13 +00:00
parent 1219c54bf4
commit f38c25df9f
6 changed files with 44 additions and 24 deletions

View File

@@ -13,13 +13,9 @@
tags:
- juicefs
# Note: Per-service tags should be set in each service's task file (e.g., privatebin.yml).
# The tags here are static and allow selection by service name.
# To target a specific service, use '--tags services,privatebin' so the include is processed and the inner tag matches.
- name: Include service tasks
ansible.builtin.include_tasks: "services/{{ item.name }}/{{ item.name }}.yml"
loop: "{{ services }}"
when: item.enabled|bool and (inventory_hostname in item.hosts)
loop: "{{ services | selectattr('enabled', 'equalto', true) | selectattr('hosts', 'contains', inventory_hostname) | list if specific_service is not defined else services | selectattr('name', 'equalto', specific_service) | selectattr('enabled', 'equalto', true) | selectattr('hosts', 'contains', inventory_hostname) | list }}"
loop_control:
label: "{{ item.name }}"
tags:
@@ -52,7 +48,7 @@
enabled: true
hosts:
- mennos-cloud-server
# - mennos-server
- mennos-server
- name: seafile
enabled: true
hosts:
@@ -76,7 +72,7 @@
- name: downloaders
enabled: true
hosts:
- mennos-cloud-server
- mennos-server
- name: wireguard
enabled: true
hosts: