xoxys.jellyfin/tasks/prepare.yml
Robert Kaussow 60970e3459
Some checks failed
continuous-integration/drone/push Build is failing
refactor ci pipeline
2019-10-17 20:58:18 +02:00

36 lines
968 B
YAML

---
- block:
- name: Create local facts dir
file:
path: /etc/ansible/facts.d
state: directory
mode: 0755
- name: Set current jellyfin version
set_fact:
jellyfin_current_version: "{{ (ansible_local.jellyfin | default (dict(version='0.0.0')))['version'] }}"
- debug:
msg: Current version is '{{ jellyfin_current_version }}'
- name: Create group '{{ jellyfin_group }}'
group:
name: "{{ jellyfin_group }}"
state: present
- name: Create user '{{ jellyfin_user }}'
user:
comment: jellyfin
name: "{{ jellyfin_user }}"
home: "{{ jellyfin_user_home }}"
group: "{{ jellyfin_group }}"
groups: "{{ jellyfin_extra_groups | join(',') }}"
- name: Install dependencies
package:
name: "{{ item }}"
state: present
loop: "{{ jellyfin_packages_extra + __jellyfin_packages }}"
become: True
become_user: root