1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-12 11:12:06 +00:00

systemd norms in captiveportal/tasks/main.yml (for uwsgi-captiveportal)

This commit is contained in:
A Holt 2020-01-17 04:18:45 -05:00 committed by GitHub
parent bf9f02d7f9
commit 3fcd5ca6ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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