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

"when: calibre_enabled" restored to L36 & L44

This commit is contained in:
A Holt 2017-11-20 02:26:51 -05:00 committed by GitHub
parent 20a76bf665
commit 35baf4d7e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,6 +33,7 @@
with_items:
- { src: 'calibre-serve.service.j2', dest: '/etc/systemd/system/calibre-serve.service', mode: '0644'}
- { src: 'calibre.conf', dest: '/etc/{{ apache_config_dir }}', mode: '0644'}
when: calibre_enabled
# http://box:8080 & http://box:8080/mobile WORK BUT OTHER URL'S LIKE http://box/books ARE A MESS (BOOKS RARELY DISPLAY)
- name: Create calibre.conf link for UNTESTED http://box/books etc (debuntu)
@ -40,7 +41,7 @@
src: /etc/apache2/sites-available/calibre.conf
dest: /etc/apache2/sites-enabled/calibre.conf
state: link
when: is_debuntu
when: calibre_enabled and is_debuntu
- name: Enable Calibre service -- runs calibre-server by Kovid Goyal
service:
@ -63,7 +64,7 @@
# state=stopped
# when: not calibre_enabled
- name: Add 'calibre-serve' to service list
- name: Add 'calibre-serve' to service list at /etc/iiab/iiab.ini
ini_file:
dest: "{{ service_filelist }}"
section: calibre