mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
captiveportal/tasks/main.yml later needs install.yml etc
This commit is contained in:
parent
0f763281ea
commit
bf9f02d7f9
1 changed files with 10 additions and 6 deletions
|
@ -1,3 +1,5 @@
|
||||||
|
# TO DO: move 8-10 stanzas below into install.yml
|
||||||
|
|
||||||
- name: "Download & install packages: python3-dateutil, python3-jinja2"
|
- name: "Download & install packages: python3-dateutil, python3-jinja2"
|
||||||
package:
|
package:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
|
@ -73,6 +75,14 @@
|
||||||
args:
|
args:
|
||||||
creates: /etc/nginx/sites-available/capture.conf
|
creates: /etc/nginx/sites-available/capture.conf
|
||||||
|
|
||||||
|
- name: "Add 'captiveportal_installed: True' to {{ iiab_state_file }}"
|
||||||
|
lineinfile:
|
||||||
|
dest: "{{ iiab_state_file }}" # /etc/iiab/iiab_state.yml
|
||||||
|
regexp: '^captiveportal_installed'
|
||||||
|
line: 'captiveportal_installed: True'
|
||||||
|
|
||||||
|
# TO DO: move (most) stuff below, and likely the 2-4 stanzas above, into enable-or-disable.yml
|
||||||
|
|
||||||
- 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
|
||||||
|
@ -93,12 +103,6 @@
|
||||||
state: absent
|
state: absent
|
||||||
when: not captiveportal_enabled
|
when: not captiveportal_enabled
|
||||||
|
|
||||||
- name: "Add 'captiveportal_installed: True' to {{ iiab_state_file }}"
|
|
||||||
lineinfile:
|
|
||||||
dest: "{{ iiab_state_file }}" # /etc/iiab/iiab_state.yml
|
|
||||||
regexp: '^captiveportal_installed'
|
|
||||||
line: 'captiveportal_installed: True'
|
|
||||||
|
|
||||||
#- name: Restart dnsmasq
|
#- name: Restart dnsmasq
|
||||||
# systemd:
|
# systemd:
|
||||||
# name: dnsmasq
|
# name: dnsmasq
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue