mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 19:52:06 +00:00
12 lines
635 B
YAML
12 lines
635 B
YAML
- name: Enable http://box{{ calibreweb_url1 }}, http://box{{ calibreweb_url2 }}, http://box{{ calibreweb_url3 }} via Apache # http://box/books, http://box/libros, http://box/livres
|
|
command: a2ensite calibre-web.conf
|
|
when: calibreweb_enabled | bool
|
|
|
|
- name: Disable http://box{{ calibreweb_url1 }}, http://box{{ calibreweb_url2 }}, http://box{{ calibreweb_url3 }} via Apache
|
|
command: a2dissite calibre-web.conf
|
|
when: not calibreweb_enabled
|
|
|
|
- name: (Re)Start '{{ apache_service }}' systemd service
|
|
systemd:
|
|
name: "{{ apache_service }}" # apache2 or httpd, as set in /opt/iiab/iiab/vars/<OS>.yml
|
|
state: restarted
|