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:
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"
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue