From 8cb45e2a7e247d5fee28e9eeeea86fb503d1d7f4 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Tue, 30 Jul 2019 23:17:18 +0200 Subject: [PATCH] add jellyfin_packages_extra variable --- defaults/main.yml | 2 ++ molecule/ec2-centos-7/playbook.yml | 4 ++++ tasks/prepare.yml | 2 +- vars/main.yml | 2 +- 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index 352475e..032c901 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -32,6 +32,8 @@ jellyfin_logrotate_config: - compress - shred +jellyfin_packages_extra: [] + # Possible: Verbose | Debug | Information | Warning | Error | Fatal # Beware that the values are case sensitive! jellyfin_log_level_console: Fatal diff --git a/molecule/ec2-centos-7/playbook.yml b/molecule/ec2-centos-7/playbook.yml index 6018f1a..d7680ff 100644 --- a/molecule/ec2-centos-7/playbook.yml +++ b/molecule/ec2-centos-7/playbook.yml @@ -1,5 +1,9 @@ --- - name: Converge hosts: all + vars: + jellyfin_packages_extra: + - epel-release + roles: - role: xoxys.jellyfin diff --git a/tasks/prepare.yml b/tasks/prepare.yml index 1e9dc0b..0bf7a76 100644 --- a/tasks/prepare.yml +++ b/tasks/prepare.yml @@ -32,6 +32,6 @@ package: name: "{{ item }}" state: present - loop: "{{ __jellyfin_dependencies }}" + loop: "{{ jellyfin_packages_extra + __jellyfin_packages }}" become: True become_user: root diff --git a/vars/main.yml b/vars/main.yml index 4497ed9..9280b11 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -1,5 +1,5 @@ --- -__jellyfin_dependencies: +__jellyfin_packages: - lttng-ust - libcurl - openssl-libs