1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 11:42:08 +00:00

permissions for metadata.db

This commit is contained in:
Jerry Vonau 2017-11-19 19:17:37 -06:00
parent 56f54dc70f
commit 20fd831130

View file

@ -2,7 +2,7 @@
file: file:
path: "{{ calibre_dbpath }}" path: "{{ calibre_dbpath }}"
state: directory state: directory
mode: 0666 mode: 0755
- name: Check if sample book exists in /opt/iiab/downloads - name: Check if sample book exists in /opt/iiab/downloads
stat: stat:
@ -23,3 +23,8 @@
- name: Incorporate sample book into Calibre DB (mandatory since Calibre 3.x) - 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 }}" 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 and not calibre_db.stat.exists
- name: Setting permissions on /library/calibre/metadata.db
file:
path: "{{ calibre_dbpath }}/metadata.db"
mode: 0666