Refactor: Organize Ansible project structure
- Reorganized Ansible project structure to follow best practices. - Created dedicated directories: , , , , and . - Categorized playbooks into (host-specific) and (service-specific). - Moved all roles into the directory and standardized their naming conventions. - Relocated to for better variable management. - Renamed to to reflect its global variable scope. - Created to correctly set the to the new directory. - Moved and into the directory. - Added to providing explanations for common commands. - Cleaned up directories from all individual roles to centralize version control.
This commit is contained in:
34
roles/docker_spin_up/tasks/jellyfin.yml
Normal file
34
roles/docker_spin_up/tasks/jellyfin.yml
Normal file
@@ -0,0 +1,34 @@
|
||||
- name: Dir-jellyfin-config
|
||||
ansible.builtin.file:
|
||||
path: "{{ docker_homepath }}/config"
|
||||
owner: "{{ user }}"
|
||||
group: "{{ primary_group }}"
|
||||
state: directory
|
||||
mode: '0711'
|
||||
|
||||
- name: Dir-jellyfin-cache
|
||||
ansible.builtin.file:
|
||||
path: "{{ docker_homepath }}/cache"
|
||||
owner: "{{ user }}"
|
||||
group: "{{ primary_group }}"
|
||||
state: directory
|
||||
mode: '0711'
|
||||
|
||||
|
||||
- name: jellyfin
|
||||
community.docker.docker_container:
|
||||
name: jellyfin
|
||||
image: jellyfin/jellyfin:2024042215
|
||||
user: "{{ uid }}:{{ gid }}"
|
||||
env:
|
||||
PUID: "1000"
|
||||
PGID: "1000"
|
||||
TZ: "Etc/UTC"
|
||||
JELLYFIN_PublishedServerUrl: "jellyfin.lan" #optional
|
||||
volumes:
|
||||
- "/bigpool/tata/Music:/Music:ro"
|
||||
- "{{ docker_homepath }}/config:/config"
|
||||
- "{{ docker_homepath }}/cache:/cache"
|
||||
restart_policy: unless-stopped
|
||||
networks:
|
||||
- name: http
|
||||
Reference in New Issue
Block a user