mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
fixes for moving invokation to 9
This commit is contained in:
parent
059dcc6025
commit
e15daa1993
1 changed files with 15 additions and 8 deletions
|
@ -18,10 +18,10 @@
|
||||||
dest: "{{ item.dest }}"
|
dest: "{{ item.dest }}"
|
||||||
mode: "{{ item.mode }}"
|
mode: "{{ item.mode }}"
|
||||||
with_items:
|
with_items:
|
||||||
- { src: checkurls, mode: '0644', dest: /opt/iiab/captiveportal/ }
|
- { src: roles/captiveportal/templates/checkurls, mode: '0644', dest: /opt/iiab/captiveportal/ }
|
||||||
- { src: capture-wsgi.py, mode: '0755', dest: /opt/iiab/captiveportal/ }
|
- { src: roles/captiveportal/templates/capture-wsgi.py, mode: '0755', dest: /opt/iiab/captiveportal/ }
|
||||||
- { src: iiab-make-cp-servers.py, mode: '0755', dest: /usr/sbin/ }
|
- { src: roles/captiveportal/templates/iiab-make-cp-servers.py, mode: '0755', dest: /usr/sbin/ }
|
||||||
- { src: iiab-divert-to-nginx, mode: '0755', dest: /usr/sbin/ }
|
- { src: roles/captiveportal/templates/iiab-divert-to-nginx, mode: '0755', dest: /usr/sbin/ }
|
||||||
|
|
||||||
- name: 'Copy templates: simple.template, mac.template'
|
- name: 'Copy templates: simple.template, mac.template'
|
||||||
copy:
|
copy:
|
||||||
|
@ -33,7 +33,7 @@
|
||||||
|
|
||||||
- name: Copy uWSGI config file
|
- name: Copy uWSGI config file
|
||||||
template:
|
template:
|
||||||
src: captiveportal.ini
|
src: roles/captiveportal/templates/captiveportal.ini
|
||||||
dest: /etc/uwsgi/apps-available/
|
dest: /etc/uwsgi/apps-available/
|
||||||
|
|
||||||
- name: Enable uwsgi config for captiveportal
|
- name: Enable uwsgi config for captiveportal
|
||||||
|
@ -43,9 +43,16 @@
|
||||||
state: link
|
state: link
|
||||||
when: captiveportal_enabled | bool
|
when: captiveportal_enabled | bool
|
||||||
|
|
||||||
|
- name: Enable nginx to service the sites in checkurls list
|
||||||
|
file:
|
||||||
|
src: /etc/nginx/sites-available/capture.conf
|
||||||
|
path: /etc/nginx/sites-enabled/capture.conf
|
||||||
|
state: link
|
||||||
|
when: captiveportal_enabled | bool
|
||||||
|
|
||||||
- name: Copy unit file for uWSGI service
|
- name: Copy unit file for uWSGI service
|
||||||
template:
|
template:
|
||||||
src: 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: Start or restart server which responds to browsers trying to detect a captive portal
|
||||||
|
@ -61,10 +68,10 @@
|
||||||
when: not captiveportal_enabled | bool
|
when: not captiveportal_enabled | bool
|
||||||
|
|
||||||
- name: Run divert to generate diversion lists for nginx
|
- name: Run divert to generate diversion lists for nginx
|
||||||
shell: iiab-divert-to-nginx
|
shell: /usr/sbin/iiab-divert-to-nginx
|
||||||
|
|
||||||
- name: Run script to generate nginx servers from checkurls input list
|
- name: Run script to generate nginx servers from checkurls input list
|
||||||
shell: iiab-make-cp-servers.py
|
shell: /usr/sbin/iiab-make-cp-servers.py
|
||||||
|
|
||||||
- name: Install nginx's captiveportal.conf from template if captiveportal_enabled
|
- name: Install nginx's captiveportal.conf from template if captiveportal_enabled
|
||||||
template:
|
template:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue