1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-14 20:22:08 +00:00

Update main.yml

This commit is contained in:
A Holt 2018-09-14 23:02:31 -04:00 committed by GitHub
parent 439b3c6646
commit 89794fc642
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 Calibre-Web folders to store data and configuration files
file:
path: "{{ item }}"
owner: "{{ calibreweb_user }}"
@ -11,7 +11,7 @@
- "{{ calibreweb_config }}"
## TODO: Calibre-web future release might get into pypi https://github.com/janeczku/calibre-web/issues/456
- name: Download calibre-web github repository
- name: Download Calibre-Web github repository
git:
repo: https://github.com/janeczku/calibre-web.git
dest: "{{ calibreweb_venv_path }}"
@ -30,7 +30,7 @@
# ignore_errors: True
##
# Implementing this with Ansible command module for now.
- name: Download calibre-web dependencies into virtual environment
- name: Download Calibre-Web dependencies into virtual environment
pip:
requirements: "{{ calibreweb_venv_path }}/requirements.txt"
virtualenv: "{{ calibreweb_venv_path }}"
@ -43,7 +43,7 @@
src: "{{ calibreweb_venv_path }}/lib/python2.7/site-packages"
dest: "{{ calibreweb_venv_path }}/vendor"
- name: Create calibre-web systemd service unit file and calibre-web.conf for Apache
- name: Create Calibre-Web systemd service unit file and calibre-web.conf for Apache
template:
src: "{{ item.src }}"
dest: "{{ item.dest }}"
@ -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' 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' service
systemd:
name: calibre-web
daemon_reload: yes
@ -109,7 +109,7 @@
state: stopped
when: not calibreweb_enabled
- name: Disable http://box/calibre-web with Apache
- name: Disable http://box{{ calibreweb_url }} with Apache
command: a2dissite calibre-web.conf
when: not calibreweb_enabled