mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Remove "| bool" 1.5yrs later, as Ansible 2.10 changed conditional_bare_variables default
This commit is contained in:
parent
2968a8a20e
commit
ca171fbc1c
158 changed files with 2072 additions and 2072 deletions
|
|
@ -15,7 +15,7 @@
|
|||
template:
|
||||
src: captiveportal.ini.j2
|
||||
dest: /etc/uwsgi/apps-enabled/captiveportal.ini
|
||||
when: captiveportal_enabled | bool
|
||||
when: captiveportal_enabled
|
||||
|
||||
- name: Delete /etc/uwsgi/apps-enabled/captiveportal.ini (if not captiveportal_enabled)
|
||||
file:
|
||||
|
|
@ -28,7 +28,7 @@
|
|||
src: /etc/nginx/sites-available/capture.conf
|
||||
path: /etc/nginx/sites-enabled/capture.conf
|
||||
state: link
|
||||
when: captiveportal_enabled | bool
|
||||
when: captiveportal_enabled
|
||||
|
||||
- name: Delete symlink /etc/nginx/sites-enabled/capture.conf to disable NGINX to location definitions for checkurls (if not captiveportal_enabled)
|
||||
file:
|
||||
|
|
@ -38,7 +38,7 @@
|
|||
|
||||
- name: Run iiab-divert-to-nginx to generate diversion lists for NGINX
|
||||
shell: /usr/sbin/iiab-divert-to-nginx
|
||||
when: captiveportal_enabled | bool
|
||||
when: captiveportal_enabled
|
||||
|
||||
- name: Delete /etc/dnsmasq.d/capture to make sure dnsmasq is not diverting (if not captiveportal_enabled)
|
||||
file:
|
||||
|
|
@ -60,10 +60,10 @@
|
|||
systemd:
|
||||
name: dnsmasq
|
||||
state: stopped
|
||||
when: dnsmasq_enabled | bool
|
||||
when: dnsmasq_enabled
|
||||
|
||||
- name: Start 'dnsmasq' systemd service (if dnsmasq_enabled)
|
||||
systemd:
|
||||
name: dnsmasq
|
||||
state: started
|
||||
when: dnsmasq_enabled | bool
|
||||
when: dnsmasq_enabled
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue