1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 03:32:12 +00:00

Merge pull request #600 from jvonau/cal-reload

calibre - systemd & apache reloading
This commit is contained in:
A Holt 2017-12-07 11:17:56 -05:00 committed by GitHub
commit 1512a82fbe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -49,6 +49,7 @@
owner: root owner: root
group: root group: root
mode: "{{ item.mode }}" mode: "{{ item.mode }}"
register: calibre_config
with_items: with_items:
- { src: 'calibre-serve.service.j2', dest: '/etc/systemd/system/calibre-serve.service', mode: '0644'} - { src: 'calibre-serve.service.j2', dest: '/etc/systemd/system/calibre-serve.service', mode: '0644'}
- { src: 'calibre.conf', dest: '/etc/{{ apache_config_dir }}', mode: '0644'} - { src: 'calibre.conf', dest: '/etc/{{ apache_config_dir }}', mode: '0644'}
@ -67,6 +68,11 @@
state: absent state: absent
when: (not calibre_enabled) and is_debuntu when: (not calibre_enabled) and is_debuntu
- name: Forcing systemd to reread configs
systemd:
daemon_reload: yes
when: calibre_config.changed
- 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
@ -76,6 +82,11 @@
#async: 900 #async: 900
#poll: 5 #poll: 5
- name: Forcing apache to reread configs
service:
name: "{{ apache_service }}"
state: reloaded
- name: Add 'calibre' to list of services at /etc/iiab/iiab.ini - name: Add 'calibre' to list of services at /etc/iiab/iiab.ini
ini_file: ini_file:
dest: "{{ service_filelist }}" dest: "{{ service_filelist }}"