mirror of
https://github.com/iiab/iiab.git
synced 2025-02-12 19:22:24 +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
|
||||
systemd:
|
||||
name: uwsgi-captiveportal.service
|
||||
name: uwsgi-captiveportal
|
||||
daemon_reload: yes
|
||||
state: restarted
|
||||
enabled: True
|
||||
when: captiveportal_enabled | bool
|
||||
|
||||
- name: Stop & Disable 'uwsgi-captiveportal' systemd service (uWSGI server) if Captive Portal has been disabled
|
||||
systemd:
|
||||
name: uwsgi-captiveportal.service
|
||||
name: uwsgi-captiveportal
|
||||
state: stopped
|
||||
enabled: False
|
||||
when: not captiveportal_enabled
|
||||
|
|
Loading…
Reference in a new issue