- 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.
34 lines
861 B
YAML
34 lines
861 B
YAML
- 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 |