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

captiveportal/tasks/main.yml later needs install.yml etc

This commit is contained in:
A Holt 2020-01-17 03:53:15 -05:00 committed by GitHub
parent 0f763281ea
commit bf9f02d7f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,3 +1,5 @@
# TO DO: move 8-10 stanzas below into install.yml
- name: "Download & install packages: python3-dateutil, python3-jinja2"
package:
name: "{{ item }}"
@ -73,6 +75,14 @@
args:
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
file:
src: /etc/nginx/sites-available/capture.conf
@ -93,12 +103,6 @@
state: absent
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
# systemd:
# name: dnsmasq