mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Apache+ systemd cleanup for http://box/sugar etc
This commit is contained in:
parent
4e84c6caa5
commit
110ad13a5a
1 changed files with 6 additions and 4 deletions
|
@ -229,14 +229,14 @@
|
||||||
# # Use this instead, if tabs are truly nec:
|
# # Use this instead, if tabs are truly nec:
|
||||||
# # block: "\tvar pathPrefix = '/sugarizer';\n\tapp.use(pathPrefix, require('path-prefix-proxy')(pathPrefix));"
|
# # block: "\tvar pathPrefix = '/sugarizer';\n\tapp.use(pathPrefix, require('path-prefix-proxy')(pathPrefix));"
|
||||||
|
|
||||||
- name: Create symlink sugarizer.conf from sites-enabled to sites-available, for short URL http://box/sugarizer (debuntu)
|
- name: Create symlink sugarizer.conf from sites-enabled to sites-available, for short URLs http://box/sugar & http://box/sugarizer (if sugarizer_enabled)
|
||||||
file:
|
file:
|
||||||
src: /etc/apache2/sites-available/sugarizer.conf
|
src: /etc/apache2/sites-available/sugarizer.conf
|
||||||
path: /etc/apache2/sites-enabled/sugarizer.conf
|
path: /etc/apache2/sites-enabled/sugarizer.conf
|
||||||
state: link
|
state: link
|
||||||
when: sugarizer_enabled and is_debuntu
|
when: sugarizer_enabled and is_debuntu
|
||||||
|
|
||||||
- name: "Remove symlink /etc/apache2/sites-enabled/sugarizer.conf, if sugarizer_enabled: False (debuntu)"
|
- name: Remove symlink /etc/apache2/sites-enabled/sugarizer.conf (if not sugarizer_enabled)
|
||||||
file:
|
file:
|
||||||
path: /etc/apache2/sites-enabled/sugarizer.conf
|
path: /etc/apache2/sites-enabled/sugarizer.conf
|
||||||
state: absent
|
state: absent
|
||||||
|
@ -245,7 +245,8 @@
|
||||||
|
|
||||||
# 6. RESTART/STOP SYSTEMD SERVICE
|
# 6. RESTART/STOP SYSTEMD SERVICE
|
||||||
|
|
||||||
- name: Enable & Restart systemd service if sugarizer_enabled, with "systemctl daemon-reload" (in case mongodb.service changed?)
|
# with "systemctl daemon-reload" in case mongodb.service changed, etc
|
||||||
|
- name: Enable & Restart 'sugarizer' systemd service (if sugarizer_enabled)
|
||||||
systemd:
|
systemd:
|
||||||
name: sugarizer
|
name: sugarizer
|
||||||
daemon_reload: yes
|
daemon_reload: yes
|
||||||
|
@ -253,9 +254,10 @@
|
||||||
state: restarted
|
state: restarted
|
||||||
when: sugarizer_enabled
|
when: sugarizer_enabled
|
||||||
|
|
||||||
- name: "Disable systemd service, if sugarizer_enabled: False"
|
- name: Disable & Stop 'sugarizer' systemd service (if not sugarizer_enabled)
|
||||||
systemd:
|
systemd:
|
||||||
name: sugarizer
|
name: sugarizer
|
||||||
|
daemon_reload: yes
|
||||||
enabled: no
|
enabled: no
|
||||||
state: stopped
|
state: stopped
|
||||||
when: not sugarizer_enabled
|
when: not sugarizer_enabled
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue