From 688427ddf5d03563dbfca0e66c7ef1c5ee9bd30f Mon Sep 17 00:00:00 2001 From: A Holt Date: Tue, 12 Feb 2019 13:32:49 -0500 Subject: [PATCH] Update main.yml --- roles/nodered/tasks/main.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/roles/nodered/tasks/main.yml b/roles/nodered/tasks/main.yml index 1a8fc888e..7f3c8373d 100644 --- a/roles/nodered/tasks/main.yml +++ b/roles/nodered/tasks/main.yml @@ -1,6 +1,13 @@ # 2019-01-16: @jvonau's PR #1403 moved installation of Node.js (8.x for now) & # npm to roles/nodejs/tasks/main.yml, triggered by roles/nodered/meta/main.yml +# BRUTAL but ensures consistency across OS's / distros like Raspbian Desktop & Ubermix that often include an older version of Node-RED +- name: ASK apt/yum/dnf TO REMOVE PRE-EXISTING Node-RED (IF IT WAS INSTALLED BY OS PKG MANAGER) + package: + name: nodered + state: absent + when: nodered_install + - name: 'npm install node-red packages globally: node-red, node-red-admin, node-red-dashboard' shell: npm install -g --unsafe-perm node-red node-red-admin node-red-dashboard when: nodered_install