1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 03:32:12 +00:00

calibre-serve.service MUST be off for calibredb

This commit is contained in:
A Holt 2017-11-20 02:53:23 -05:00 committed by GitHub
parent 35baf4d7e5
commit dcfe811f11
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,3 +1,15 @@
- name: Check if Calibre systemd service exists
stat:
path: /etc/systemd/system/calibre-serve.service
register: calibre_svc
- name: Disable Calibre service -- stops calibre-server by Kovid Goyal
service:
name: calibre-serve
enabled: no
state: stopped
when: calibre_svc.stat.exists
- name: Create /library/calibre (mandatory since Calibre 3.x)
file:
path: "{{ calibre_dbpath }}"
@ -22,7 +34,7 @@
- name: Incorporate sample book into Calibre DB (mandatory since Calibre 3.x)
shell: "calibredb add {{ content_base }}/downloads/{{ calibre_sample_book }} --with-library {{ calibre_dbpath }}"
when: sample_bk.stat.exists and not calibre_db.stat.exists
when: sample_bk.stat.exists
- name: Make /library/calibre/metadata.db writable for Calibre client SW
file: