From 20fd8311308c8f1ee40d068c320ecd81e4174345 Mon Sep 17 00:00:00 2001 From: Jerry Vonau Date: Sun, 19 Nov 2017 19:17:37 -0600 Subject: [PATCH] permissions for metadata.db --- roles/calibre/tasks/install.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/roles/calibre/tasks/install.yml b/roles/calibre/tasks/install.yml index b8596f8e3..a6821d3c0 100644 --- a/roles/calibre/tasks/install.yml +++ b/roles/calibre/tasks/install.yml @@ -2,7 +2,7 @@ file: path: "{{ calibre_dbpath }}" state: directory - mode: 0666 + mode: 0755 - name: Check if sample book exists in /opt/iiab/downloads stat: @@ -23,3 +23,8 @@ - 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 + +- name: Setting permissions on /library/calibre/metadata.db + file: + path: "{{ calibre_dbpath }}/metadata.db" + mode: 0666