From 04bf16420c03f75cfcf72b159977a1ea0ee3a935 Mon Sep 17 00:00:00 2001 From: George Hunt Date: Thu, 17 Jan 2019 20:52:36 +0000 Subject: [PATCH] changes for menu to install automatically --- roles/nodered/tasks/main.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/roles/nodered/tasks/main.yml b/roles/nodered/tasks/main.yml index f51a23230..7f2160a10 100644 --- a/roles/nodered/tasks/main.yml +++ b/roles/nodered/tasks/main.yml @@ -53,3 +53,19 @@ enabled: yes state: started when: nodered_enabled + +- name: Add 'nodered' variable values to {{ iiab_ini_file }} + ini_file: + path: "{{ iiab_ini_file }}" + section: nodered + option: "{{ item.option }}" + value: "{{ item.value }}" + 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."' + - option: nodered_install + value: "{{ nodered_install }}" + - option: nodered_enabled + value: "{{ nodered_enabled }}"