- name:Install Node-RED if nodered_installed is not defined, e.g. in {{ iiab_state_file }} # /etc/iiab/iiab_state.yml
include_tasks:install.yml
when:nodered_installed is undefined
- include_tasks:enable-or-disable.yml
- name:Add 'nodered' variable values to {{ iiab_ini_file }}
ini_file:
path:"{{ iiab_ini_file }}"# /etc/iiab/iiab.ini
section:nodered
option:"{{ item.option }}"
value:"{{ item.value | string }}"
with_items:
- option:name
value:Node-RED
- option:description
value:'"Node-RED is a flow-based development tool for visual programming developed originally by IBM for wiring together hardware devices, APIs and online services as part of the Internet of Things. Node-RED provides a web browser-based flow editor, which can be used to create JavaScript functions."'