This commit is contained in:
parent
c14dc72a59
commit
b554cf2da5
@ -31,14 +31,14 @@
|
||||
mode: 0600
|
||||
loop:
|
||||
- "logging.json"
|
||||
# notify: __jellyfin_restart
|
||||
notify: __jellyfin_restart
|
||||
|
||||
- name: Link v'{{ jellyfin_version }}' to latest
|
||||
file:
|
||||
src: "{{ jellyfin_base_dir }}/{{ jellyfin_version }}/jellyfin"
|
||||
dest: "{{ jellyfin_base_dir }}/jellyfin-latest"
|
||||
state: link
|
||||
# notify: __jellyfin_restart
|
||||
notify: __jellyfin_restart
|
||||
become: True
|
||||
become_user: "{{ jellyfin_user }}"
|
||||
when: jellyfin_version is version(jellyfin_current_version, ">") or jellyfin_current_version is version('0.0.0', "=")
|
||||
@ -49,13 +49,12 @@
|
||||
src: etc/ansible/facts.d/jellyfin.fact.j2
|
||||
dest: /etc/ansible/facts.d/jellyfin.fact
|
||||
mode: 0644
|
||||
when: jellyfin_version is version(jellyfin_current_version, ">") or jellyfin_current_version is version('0.0.0', "=")
|
||||
|
||||
- name: Copy systemd unit file
|
||||
template:
|
||||
src: "etc/systemd/system/jellyfin.service.j2"
|
||||
dest: "/etc/systemd/system/jellyfin.service"
|
||||
# notify: __jellyfin_restart
|
||||
notify: __jellyfin_restart
|
||||
|
||||
- name: Copy logrotate config
|
||||
template:
|
||||
|
@ -3,3 +3,4 @@
|
||||
- import_tasks: storage.yml
|
||||
when: jellyfin_lvm_enabled
|
||||
- include_tasks: install.yml
|
||||
- include_tasks: post_tasks.yml
|
||||
|
9
tasks/post_tasks.yml
Normal file
9
tasks/post_tasks.yml
Normal file
@ -0,0 +1,9 @@
|
||||
---
|
||||
- name: Ensure jellyfin service is up and running
|
||||
systemd:
|
||||
state: started
|
||||
daemon_reload: yes
|
||||
enabled: yes
|
||||
name: jellyfin
|
||||
become: True
|
||||
become_user: root
|
Loading…
Reference in New Issue
Block a user