mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
systemd norms in captiveportal/tasks/main.yml (for uwsgi-captiveportal)
This commit is contained in:
parent
bf9f02d7f9
commit
3fcd5ca6ea
1 changed files with 3 additions and 2 deletions
|
@ -55,14 +55,15 @@
|
||||||
|
|
||||||
- name: Restart & Enable 'uwsgi-captiveportal' systemd service (uWSGI server) that responds to browsers trying to detect a Captive Portal
|
- name: Restart & Enable 'uwsgi-captiveportal' systemd service (uWSGI server) that responds to browsers trying to detect a Captive Portal
|
||||||
systemd:
|
systemd:
|
||||||
name: uwsgi-captiveportal.service
|
name: uwsgi-captiveportal
|
||||||
|
daemon_reload: yes
|
||||||
state: restarted
|
state: restarted
|
||||||
enabled: True
|
enabled: True
|
||||||
when: captiveportal_enabled | bool
|
when: captiveportal_enabled | bool
|
||||||
|
|
||||||
- name: Stop & Disable 'uwsgi-captiveportal' systemd service (uWSGI server) if Captive Portal has been disabled
|
- name: Stop & Disable 'uwsgi-captiveportal' systemd service (uWSGI server) if Captive Portal has been disabled
|
||||||
systemd:
|
systemd:
|
||||||
name: uwsgi-captiveportal.service
|
name: uwsgi-captiveportal
|
||||||
state: stopped
|
state: stopped
|
||||||
enabled: False
|
enabled: False
|
||||||
when: not captiveportal_enabled
|
when: not captiveportal_enabled
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue