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:
parent
35baf4d7e5
commit
dcfe811f11
1 changed files with 13 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue