fix fact folder and file mode
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
d2274fcbfa
commit
a7906de305
@ -41,12 +41,14 @@
|
|||||||
# 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', "=")
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
- name: Write current version to custom fact
|
- name: Write current version to custom fact
|
||||||
template:
|
template:
|
||||||
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
|
||||||
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', "=")
|
||||||
|
|
||||||
- name: Copy systemd unit file
|
- name: Copy systemd unit file
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
file:
|
file:
|
||||||
path: /etc/ansible/facts.d
|
path: /etc/ansible/facts.d
|
||||||
state: directory
|
state: directory
|
||||||
|
mode: 0750
|
||||||
|
|
||||||
- name: Set current jellyfin version
|
- name: Set current jellyfin version
|
||||||
set_fact:
|
set_fact:
|
||||||
|
Loading…
Reference in New Issue
Block a user