diff --git a/roles/calibre/tasks/main.yml b/roles/calibre/tasks/main.yml index 4fc1f2820..9a7db6efa 100644 --- a/roles/calibre/tasks/main.yml +++ b/roles/calibre/tasks/main.yml @@ -40,10 +40,11 @@ group: root mode: "{{ item.mode }}" backup: no - register: calibre_config +# register: calibre_config with_items: - { src: 'calibre-serve.service.j2', dest: '/etc/systemd/system/calibre-serve.service', mode: '0644'} - { src: 'calibre.conf', dest: '/etc/{{ apache_config_dir }}', mode: '0644'} + when: (not calib_executable.stat.exists) - name: Copy template userdb to /library/calibre/users.sqlite copy: @@ -52,11 +53,13 @@ owner: root group: root mode: 0644 + when: (not calib_executable.stat.exists) - name: Force systemd to reread configs systemd: daemon_reload: yes - when: calibre_config.changed + when: (not calib_executable.stat.exists) +# when: calibre_config.changed # 2. STOP CALIBRE SERVICE IF IT EXISTS (REQUIRED FOR DB ACTIVITY...AND IF not calibre_enabled)