This commit is contained in:
parent
c14dc72a59
commit
b554cf2da5
@ -31,14 +31,14 @@
|
|||||||
mode: 0600
|
mode: 0600
|
||||||
loop:
|
loop:
|
||||||
- "logging.json"
|
- "logging.json"
|
||||||
# notify: __jellyfin_restart
|
notify: __jellyfin_restart
|
||||||
|
|
||||||
- name: Link v'{{ jellyfin_version }}' to latest
|
- name: Link v'{{ jellyfin_version }}' to latest
|
||||||
file:
|
file:
|
||||||
src: "{{ jellyfin_base_dir }}/{{ jellyfin_version }}/jellyfin"
|
src: "{{ jellyfin_base_dir }}/{{ jellyfin_version }}/jellyfin"
|
||||||
dest: "{{ jellyfin_base_dir }}/jellyfin-latest"
|
dest: "{{ jellyfin_base_dir }}/jellyfin-latest"
|
||||||
state: link
|
state: link
|
||||||
# notify: __jellyfin_restart
|
notify: __jellyfin_restart
|
||||||
become: True
|
become: True
|
||||||
become_user: "{{ jellyfin_user }}"
|
become_user: "{{ jellyfin_user }}"
|
||||||
when: jellyfin_version is version(jellyfin_current_version, ">") or jellyfin_current_version is version('0.0.0', "=")
|
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
|
src: etc/ansible/facts.d/jellyfin.fact.j2
|
||||||
dest: /etc/ansible/facts.d/jellyfin.fact
|
dest: /etc/ansible/facts.d/jellyfin.fact
|
||||||
mode: 0644
|
mode: 0644
|
||||||
when: jellyfin_version is version(jellyfin_current_version, ">") or jellyfin_current_version is version('0.0.0', "=")
|
|
||||||
|
|
||||||
- name: Copy systemd unit file
|
- name: Copy systemd unit file
|
||||||
template:
|
template:
|
||||||
src: "etc/systemd/system/jellyfin.service.j2"
|
src: "etc/systemd/system/jellyfin.service.j2"
|
||||||
dest: "/etc/systemd/system/jellyfin.service"
|
dest: "/etc/systemd/system/jellyfin.service"
|
||||||
# notify: __jellyfin_restart
|
notify: __jellyfin_restart
|
||||||
|
|
||||||
- name: Copy logrotate config
|
- name: Copy logrotate config
|
||||||
template:
|
template:
|
||||||
|
@ -3,3 +3,4 @@
|
|||||||
- import_tasks: storage.yml
|
- import_tasks: storage.yml
|
||||||
when: jellyfin_lvm_enabled
|
when: jellyfin_lvm_enabled
|
||||||
- include_tasks: install.yml
|
- 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