mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 11:42:08 +00:00
13 lines
405 B
YAML
13 lines
405 B
YAML
|
- name: Enable http://box/moodle via Apache
|
||
|
command: a2ensite 022-moodle.conf
|
||
|
when: moodle_enabled | bool
|
||
|
|
||
|
- name: Disable http://box/moodle via Apache
|
||
|
command: a2dissite 022-moodle.conf
|
||
|
when: not moodle_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
|