Enhance Ansible playbooks and scripts:
- Add '--skip-check' option to update.py to skip dotfiles update checks. - Update playbook.yml and symlinks.yml to use 'inventory_hostname' for host checks. - Refactor service task inclusions in server.yml for better readability and maintainability. - Add new Home Assistant service with corresponding docker-compose configuration. - Update various service YAML files to use dynamic paths based on inventory_hostname. - Add tags for service tasks to improve organization and execution control. - Remove obsolete services.yml file.
This commit is contained in:
@@ -8,10 +8,10 @@ services:
|
||||
- TZ=Europe/Amsterdam
|
||||
- JELLYFIN_PublishedServerUrl=https://jellyfin.mvl.sh
|
||||
volumes:
|
||||
- {{jellyfin_data_dir}}/jellyfin-config:/config
|
||||
- /mnt/object_storage/movies:/movies
|
||||
- /mnt/object_storage/tvshows:/tvshows
|
||||
- /mnt/object_storage/music:/music
|
||||
- {{ jellyfin_data_dir }}/jellyfin-config:/config
|
||||
- {{ '/mnt/movies' if inventory_hostname == 'mennos-server' else '/mnt/object_storage/movies' }}:/movies
|
||||
- {{ '/mnt/tv_shows' if inventory_hostname == 'mennos-server' else '/mnt/object_storage/tvshows' }}:/tvshows
|
||||
- {{ '/mnt/music' if inventory_hostname == 'mennos-server' else '/mnt/object_storage/music' }}:/music
|
||||
ports:
|
||||
- 8096:8096
|
||||
- 8920:8920
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
block:
|
||||
- name: Set Jellyfin directories
|
||||
ansible.builtin.set_fact:
|
||||
jellyfin_data_dir: "/mnt/object_storage/services/jellyfin"
|
||||
jellyfin_data_dir: "{{ '/mnt/services/jellyfin' if inventory_hostname == 'mennos-server' else '/mnt/object_storage/services/jellyfin' }}"
|
||||
jellyfin_service_dir: "{{ ansible_env.HOME }}/services/jellyfin"
|
||||
|
||||
- name: Create Jellyfin directories
|
||||
@@ -31,3 +31,6 @@
|
||||
- name: Start Jellyfin service
|
||||
ansible.builtin.command: docker compose -f "{{ jellyfin_service_dir }}/docker-compose.yml" up -d
|
||||
when: jellyfin_compose.changed
|
||||
tags:
|
||||
- services
|
||||
- jellyfin
|
||||
|
||||
Reference in New Issue
Block a user