mirror of
https://github.com/iiab/iiab.git
synced 2025-02-15 04:32:11 +00:00
Create apache.yml
This commit is contained in:
parent
281bb0ff51
commit
0a13340c3e
1 changed files with 12 additions and 0 deletions
12
roles/sugarizer/tasks/apache.yml
Normal file
12
roles/sugarizer/tasks/apache.yml
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
- name: Enable http://box/sugarizer & http://box/sugar via Apache
|
||||||
|
command: a2ensite sugarizer.conf
|
||||||
|
when: sugarizer_enabled
|
||||||
|
|
||||||
|
- name: Disable http://box/sugarizer & http://box/sugar via Apache
|
||||||
|
command: a2dissite sugarizer.conf
|
||||||
|
when: not sugarizer_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
|
Loading…
Reference in a new issue