1
0
Fork 0
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:
root 2020-10-16 16:46:19 -04:00
parent 2968a8a20e
commit ca171fbc1c
158 changed files with 2072 additions and 2072 deletions

View file

@ -1,6 +1,6 @@
- name: Enable http://box/nodered via Apache
command: a2ensite nodered.conf
when: nodered_enabled | bool
when: nodered_enabled
- name: Disable http://box/nodered via Apache
command: a2dissite nodered.conf

View file

@ -45,7 +45,7 @@
package:
name: nodered
state: absent
when: nodered_install | bool
when: nodered_install
# 2012-02-13: the 6 RPi stanzas below recreate Raspbian Desktop's Node-RED
# environment, inspired by:

View file

@ -30,7 +30,7 @@
daemon_reload: yes
enabled: yes
state: restarted
when: nodered_enabled | bool
when: nodered_enabled
- name: Disable & Stop 'nodered' systemd service, if not nodered_enabled
systemd:
@ -46,7 +46,7 @@
- name: Enable/Disable/Restart NGINX if primary
include_tasks: nginx.yml
when: nginx_enabled | bool
when: nginx_enabled
- name: Add 'nodered' variable values to {{ iiab_ini_file }}

View file

@ -2,7 +2,7 @@
template:
src: nodered-nginx.conf.j2
dest: "{{ nginx_conf_dir }}/nodered-nginx.conf" # /etc/nginx/conf.d
when: nodered_enabled | bool
when: nodered_enabled
- name: Disable http://box/nodered via NGINX, by removing {{ nginx_conf_dir }}/nodered-nginx.conf
file: