From d69a98828bf0933489e326d3374b0f611ec3a02c Mon Sep 17 00:00:00 2001 From: A Holt Date: Mon, 20 Nov 2017 03:32:40 -0500 Subject: [PATCH] Update main.yml --- roles/calibre/tasks/main.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/roles/calibre/tasks/main.yml b/roles/calibre/tasks/main.yml index fb055c771..4bb865c13 100644 --- a/roles/calibre/tasks/main.yml +++ b/roles/calibre/tasks/main.yml @@ -4,11 +4,12 @@ - name: Install Calibre via calibre-installer.py (OS's other than Raspbian) include_tasks: py-installer.yml when: not is_rpi - #when: not calibre_db.stat.exists and (is_redhat or is_ubuntu) + #when: is_redhat or is_ubuntu - name: Install Calibre via .debs (Raspbian) include_tasks: debs.yml when: is_rpi + #when: is_rpi or is_debian #is_debian apparently also covers is_rpi # 2. STOP CALIBRE SERVICE IF IT EXISTS (REQUIRED FOR DATABASE ACTIVITY...AND IF not calibre_enabled) @@ -35,7 +36,7 @@ include_tasks: create-db.yml when: not calibre_db.stat.exists -# 4. WRAP UP: ESTABLISH CALIBRE SERVICE, http://box/books ETC +# 4. WRAP UP: CALIBRE SERVICE, http://box/books ETC - name: Create calibre-serve.service and calibre.conf template: @@ -62,7 +63,7 @@ file: dest: /etc/apache2/sites-enabled/calibre.conf state: absent - when: not calibre_enabled and is_debuntu + when: (not calibre_enabled) and is_debuntu - name: Enable Calibre service -- runs calibre-server by Kovid Goyal service: