allways deploy config files
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Robert Kaussow 2019-02-02 02:02:17 +01:00
parent 4881b0cb30
commit 821b2fb9d5
1 changed files with 11 additions and 9 deletions

View File

@ -24,15 +24,6 @@
- --strip-components=1
remote_src: yes
- name: Deploy global config files
template:
src: "opt/jellyfin/config/{{ item }}.j2"
dest: "{{ jellyfin_conf_dir }}/{{ item }}"
mode: 0600
loop:
- "logging.json"
notify: __jellyfin_restart
- name: Link v'{{ jellyfin_version }}' to latest
file:
src: "{{ jellyfin_base_dir }}/{{ jellyfin_version }}/jellyfin"
@ -43,6 +34,17 @@
become_user: "{{ jellyfin_user }}"
when: jellyfin_version is version(jellyfin_current_version, ">") or jellyfin_current_version is version('0.0.0', "=")
- name: Deploy global config files
template:
src: "opt/jellyfin/config/{{ item }}.j2"
dest: "{{ jellyfin_conf_dir }}/{{ item }}"
mode: 0600
loop:
- "logging.json"
notify: __jellyfin_restart
become: True
become_user: "{{ jellyfin_user }}"
- block:
- name: Write current version to custom fact
template: