1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-12 19:22:24 +00:00

Update main.yml

This commit is contained in:
A Holt 2018-10-31 01:29:45 -04:00 committed by GitHub
parent 617561e257
commit 9dc04dc925
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,4 @@
- name: Create Calibre-Web folders to store data and configuration files
- name: Create 3 Calibre-Web folders to store data and configuration files
file:
path: "{{ item }}"
owner: "{{ calibreweb_user }}"
@ -84,7 +84,7 @@
when: not metadatadb.stat.exists
#when: calibreweb_provision
- name: Enable and restart 'calibre-web' service
- name: Enable and restart 'calibre-web' systemd service
systemd:
name: calibre-web
daemon_reload: yes
@ -101,7 +101,7 @@
# command: apachectl -k graceful
# when: calibreweb_enabled
- name: Disable 'calibre-web' service
- name: Disable 'calibre-web' systemd service
systemd:
name: calibre-web
daemon_reload: yes
@ -117,14 +117,14 @@
# command: apachectl -k graceful
# when: not calibreweb_enabled
- name: Restart Apache
- name: Restart Apache service {{ apache_service }}
systemd:
name: "{{ apache_service }}" # httpd or apache2
state: restarted
- name: Add 'calibre-web' to list of services at {{ iiab_ini_file }}
- name: Add 'calibre-web' variable values to {{ iiab_ini_file }}
ini_file:
dest: "{{ iiab_ini_file }}"
path: "{{ iiab_ini_file }}"
section: calibre-web
option: "{{ item.option }}"
value: "{{ item.value }}"