Add env vars and fix repo
This commit is contained in:
parent
8f70be18be
commit
1c3c2ba748
4 changed files with 15 additions and 2 deletions
|
@ -2,6 +2,7 @@
|
|||
http_port: 8096
|
||||
hostname: jellyfin.example.org
|
||||
configure_apache: true
|
||||
environmental_variables: {}
|
||||
vhosts:
|
||||
- vhostname: "{{ hostname }}"
|
||||
weight: 25
|
||||
|
|
2
meta/.galaxy_install_info
Normal file
2
meta/.galaxy_install_info
Normal file
|
@ -0,0 +1,2 @@
|
|||
install_date: "s\xE1b 08 jul 2023 21:08:49"
|
||||
version: ''
|
|
@ -12,8 +12,18 @@
|
|||
name: apache_ssl_vhosts
|
||||
when: configure_apache
|
||||
|
||||
- name: Set environmental variables for Jellyfin service
|
||||
lineinfile:
|
||||
path: /etc/default/jellyfin
|
||||
regexp: "^{{ item.key }}="
|
||||
line: "{{ item.key }}={{ item.value }}"
|
||||
backup: yes
|
||||
mode: 0644
|
||||
loop: "{{ environmental_variables | dict2items }}"
|
||||
notify: Restart Jellyfin
|
||||
|
||||
- name: Ensure Jellyfin service is configured
|
||||
service:
|
||||
name: jellyfin
|
||||
enabled: true
|
||||
state: started
|
||||
state: started
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
|
||||
- name: Ensure repository is configured
|
||||
apt_repository:
|
||||
repo: "deb [arch={{ ansible_facts['architecture'] }}] https://repo.jellyfin.org/{{ ansible_facts['distribution'] | lower }} {{ ansible_facts['distribution_release'] }} main"
|
||||
repo: "deb https://repo.jellyfin.org/{{ ansible_facts['distribution'] | lower }} {{ ansible_facts['distribution_release'] }} main"
|
||||
state: present
|
||||
#echo "deb [arch=$( dpkg --print-architecture )] https://repo.jellyfin.org/$( awk -F'=' '/^ID=/{ print $NF }' /etc/os-release ) $( awk -F'=' '/^VERSION_CODENAME=/{ print $NF }' /etc/os-release ) main" | sudo tee /etc/apt/sources.list.d/jellyfin.list
|
||||
|
||||
|
|
Loading…
Reference in a new issue