mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
handle /etc/init.d/uwsgi behavior
This commit is contained in:
parent
ab411eda65
commit
eb39494f18
1 changed files with 7 additions and 2 deletions
|
@ -78,6 +78,11 @@
|
||||||
# enabled: False
|
# enabled: False
|
||||||
# when: not captiveportal_enabled
|
# when: not captiveportal_enabled
|
||||||
|
|
||||||
|
- name: Stop uwsgi
|
||||||
|
systemd:
|
||||||
|
name: uwsgi
|
||||||
|
state: stopped
|
||||||
|
|
||||||
- name: Install uWSGI config file /etc/uwsgi/apps-enabled/captiveportal.ini from template
|
- name: Install uWSGI config file /etc/uwsgi/apps-enabled/captiveportal.ini from template
|
||||||
template:
|
template:
|
||||||
src: captiveportal.ini.j2
|
src: captiveportal.ini.j2
|
||||||
|
@ -121,11 +126,11 @@
|
||||||
when: not captiveportal_enabled
|
when: not captiveportal_enabled
|
||||||
|
|
||||||
# lets assume admin-console was/will be installed anyway
|
# lets assume admin-console was/will be installed anyway
|
||||||
- name: Restart uwsgi
|
- name: Start uwsgi
|
||||||
systemd:
|
systemd:
|
||||||
name: uwsgi
|
name: uwsgi
|
||||||
daemon_reload: yes
|
daemon_reload: yes
|
||||||
state: restarted
|
state: started
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
- name: Stop 'dnsmasq' systemd service
|
- name: Stop 'dnsmasq' systemd service
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue