1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 19:52:06 +00:00
iiab/roles/kiwix/tasks/apache.yml

13 lines
453 B
YAML
Raw Normal View History

- name: Enable http://box{{ kiwix_url }} via Apache # http://box/kiwix
2020-02-14 01:31:34 +00:00
command: a2ensite kiwix.conf
when: kiwix_enabled | bool
2020-02-14 01:31:34 +00:00
- name: Disable http://box{{ kiwix_url }} via Apache # http://box/kiwix
2020-02-14 01:31:34 +00:00
command: a2dissite kiwix.conf
when: not kiwix_enabled
2020-02-14 01:31:34 +00:00
- name: (Re)Start '{{ apache_service }}' systemd service
2020-02-14 01:31:34 +00:00
systemd:
name: "{{ apache_service }}" # apache2 or httpd, as set in /opt/iiab/iiab/vars/<OS>.yml
2020-02-14 01:31:34 +00:00
state: restarted