mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Clean captiveportal/tasks/main.yml
This commit is contained in:
parent
4465ea734a
commit
a9f7bc3924
1 changed files with 5 additions and 5 deletions
|
@ -51,15 +51,15 @@
|
||||||
#src: roles/captiveportal/templates/uwsgi-captiveportal.service
|
#src: roles/captiveportal/templates/uwsgi-captiveportal.service
|
||||||
dest: /etc/systemd/system/
|
dest: /etc/systemd/system/
|
||||||
|
|
||||||
- name: Start or restart server which 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.service
|
||||||
state: restarted
|
state: restarted
|
||||||
enabled: True
|
enabled: True
|
||||||
when: captiveportal_enabled | bool
|
when: captiveportal_enabled | bool
|
||||||
|
|
||||||
- name: Stop 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.service
|
||||||
state: stopped
|
state: stopped
|
||||||
enabled: False
|
enabled: False
|
||||||
|
@ -72,7 +72,7 @@
|
||||||
command: /usr/sbin/iiab-make-cp-servers.py
|
command: /usr/sbin/iiab-make-cp-servers.py
|
||||||
args:
|
args:
|
||||||
creates: /etc/nginx/sites-available/capture.conf
|
creates: /etc/nginx/sites-available/capture.conf
|
||||||
|
|
||||||
- name: Symlink /etc/nginx/sites-enabled/capture.conf -> /etc/nginx/sites-available/capture.conf, to enable NGINX to service the sites in checkurls list
|
- name: Symlink /etc/nginx/sites-enabled/capture.conf -> /etc/nginx/sites-available/capture.conf, to enable NGINX to service the sites in checkurls list
|
||||||
file:
|
file:
|
||||||
src: /etc/nginx/sites-available/capture.conf
|
src: /etc/nginx/sites-available/capture.conf
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue