mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 19:52:06 +00:00
13 lines
473 B
YAML
13 lines
473 B
YAML
|
- name: Enable http://box{{ mediawiki_url }} via Apache # http://box/wiki
|
||
|
command: a2ensite mediawiki.conf
|
||
|
when: mediawiki_enabled | bool
|
||
|
|
||
|
- name: Disable http://box{{ mediawiki_url }} via Apache # http://box/wiki
|
||
|
command: a2dissite mediawiki.conf
|
||
|
when: not mediawiki_enabled
|
||
|
|
||
|
- name: Restart '{{ apache_service }}' systemd service
|
||
|
systemd:
|
||
|
name: "{{ apache_service }}" # apache2 or httpd, as set in /opt/iiab/iiab/vars/<OS>.yml
|
||
|
state: restarted
|