1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-15 04:32:11 +00:00

Ansible output for Calibre clarified

This commit is contained in:
A Holt 2017-11-14 01:57:55 -05:00 committed by GitHub
parent 270846585a
commit 3bcd3d3910
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,8 +14,8 @@
- name: Install Calibre (OS's other than CentOS)
# the fedora rpm arm version, though older, takes care of dependencies, and exists
package: name={{ item }}
state=present
package: name={{ item }}
state=latest
with_items:
- calibre
when: calibre_install and ansible_distribution != 'CentOS'
@ -32,13 +32,13 @@
- { src: 'calibre.conf', dest: '/etc/{{ apache_config_dir }}', mode: '0644'}
when: calibre_install
- name: Create the link for sites-enabled (debuntu)
- name: Create the link for sites-enabled, containing ProxyPass[Reverse]...localhost:8080 (debuntu)
file: src=/etc/apache2/sites-available/calibre.conf
dest=/etc/apache2/sites-enabled/calibre.conf
state=link
when: is_debuntu and calibre_enabled
- name: Enable Calibre server
- name: Enable Calibre service -- which runs calibre-server
service: name=calibre-serve
enabled=yes
state=started
@ -46,7 +46,7 @@
#poll: 5
when: calibre_enabled
- name: Disable Calibre server
- name: Disable Calibre service -- which stops calibre-server
service: name=calibre-serve
enabled=no
state=stopped