1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

Update main.yml

This commit is contained in:
A Holt 2017-11-20 03:01:38 -05:00 committed by GitHub
parent 903a9470ac
commit 7a4a9211a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,21 +1,22 @@
# INSTALL THE LATEST CALIBRE (calibre-server etc) ON ALL OS'S
# RUNS IF /usr/bin/calibre-uninstall DOES NOT ALEADY EXIST
- 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)
- name: Install Calibre via .debs (Raspbian)
include_tasks: debs.yml
when: is_rpi
# CREATE CALIBRE DATABASE WITH A SAMPLE BOOK
- name: Check if /library/calibre/metadata.db exists - name: Check if /library/calibre/metadata.db exists
stat: stat:
path: "{{ calibre_dbpath }}/metadata.db" path: "{{ calibre_dbpath }}/metadata.db"
register: calibre_db register: calibre_db
# INSTALL THE LATEST CALIBRE (calibre-server etc) ON ALL OS'S - RUNS IF /usr/bin/calibre-uninstall DOES NOT ALEADY EXIST
- name: Install Calibre via calibre-installer.py
include_tasks: py-installer.yml
when: (not calibre_db.stat.exists) and (not is_rpi)
#when: not calibre_db.stat.exists and (is_redhat or is_ubuntu)
- name: Install Calibre via .debs
include_tasks: debs.yml
when: (not calibre_db.stat.exists) and is_rpi
# CREATE CALIBRE DATABASE WITH A SAMPLE BOOK
- name: Install Calibre - All - name: Install Calibre - All
include_tasks: config-db.yml include_tasks: config-db.yml
when: not calibre_db.stat.exists when: not calibre_db.stat.exists
@ -43,6 +44,12 @@
state: link state: link
when: calibre_enabled and is_debuntu when: calibre_enabled and is_debuntu
- name: Remove calibre.conf link if disabled (debuntu)
file:
dest: /etc/apache2/sites-enabled/calibre.conf
state: absent
when: not calibre_enabled and is_debuntu
- name: Enable Calibre service -- runs calibre-server by Kovid Goyal - name: Enable Calibre service -- runs calibre-server by Kovid Goyal
service: service:
name: calibre-serve name: calibre-serve
@ -52,12 +59,6 @@
#poll: 5 #poll: 5
when: calibre_enabled when: calibre_enabled
#- name: Remove calibre.conf link if disabled (debuntu)
# file:
# dest: /etc/apache2/sites-enabled/calibre.conf
# state: absent
# when: not calibre_enabled and is_debuntu
#- name: Disable Calibre service -- stops calibre-server by Kovid Goyal #- name: Disable Calibre service -- stops calibre-server by Kovid Goyal
# service: name=calibre-serve # service: name=calibre-serve
# enabled=no # enabled=no