mirror of
https://github.com/iiab/iiab.git
synced 2025-02-12 11:12:06 +00:00
12 lines
514 B
Text
12 lines
514 B
Text
- name: 'Enable http://box/moodle via Apache: create link /etc/apache2/sites-enabled/022-moodle.conf'
|
|
command: a2ensite 022-moodle.conf
|
|
when: moodle_enabled
|
|
|
|
- name: 'Disable http://box/moodle via Apache: remove link /etc/apache2/sites-enabled/022-moodle.conf'
|
|
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
|