25 lines
668 B
YAML
25 lines
668 B
YAML
---
|
|
- block:
|
|
- name: Create group '{{ jellyfin_group }}'
|
|
group:
|
|
name: "{{ jellyfin_group }}"
|
|
state: present
|
|
gid: "{{ jellyfin_gid | default(omit) }}"
|
|
|
|
- name: Create user '{{ jellyfin_user }}'
|
|
user:
|
|
comment: jellyfin
|
|
name: "{{ jellyfin_user }}"
|
|
home: "{{ jellyfin_user_home }}"
|
|
uid: "{{ jellyfin_uid | default(omit) }}"
|
|
group: "{{ jellyfin_group }}"
|
|
groups: "{{ jellyfin_extra_groups | join(',') }}"
|
|
|
|
- name: Install dependencies
|
|
package:
|
|
name: "{{ item }}"
|
|
state: present
|
|
loop: "{{ jellyfin_dependencies }}"
|
|
become: True
|
|
become_user: root
|