2021-02-01 16:12:21 +00:00
|
|
|
- name: 'Enable http://box/moodle via Apache: create link /etc/apache2/sites-enabled/022-moodle.conf'
|
2020-02-04 20:03:59 +00:00
|
|
|
command: a2ensite 022-moodle.conf
|
2020-10-16 20:46:19 +00:00
|
|
|
when: moodle_enabled
|
2020-02-04 20:03:59 +00:00
|
|
|
|
2021-02-01 16:12:21 +00:00
|
|
|
- name: 'Disable http://box/moodle via Apache: remove link /etc/apache2/sites-enabled/022-moodle.conf'
|
2020-02-04 20:03:59 +00:00
|
|
|
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
|