1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

Update main.yml

This commit is contained in:
A Holt 2018-07-07 15:54:44 -04:00 committed by GitHub
parent 9de8f51f19
commit 11757ddb86
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)