From 821b2fb9d572c3d3d297f68040d08ef48e3c63a8 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sat, 2 Feb 2019 02:02:17 +0100 Subject: [PATCH] allways deploy config files --- tasks/install.yml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/tasks/install.yml b/tasks/install.yml index 7e7394b..1aa705c 100644 --- a/tasks/install.yml +++ b/tasks/install.yml @@ -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: