fix fact folder and file mode
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2019-02-02 00:32:40 +01:00
parent d2274fcbfa
commit a7906de305
2 changed files with 3 additions and 0 deletions

View File

@ -41,12 +41,14 @@
# 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', "=")
- block:
- name: Write current version to custom fact
template:
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

View File

@ -4,6 +4,7 @@
file:
path: /etc/ansible/facts.d
state: directory
mode: 0750
- name: Set current jellyfin version
set_fact: