From 5acd823020a1a42b21d09d52f1f4e00a49f1dfc7 Mon Sep 17 00:00:00 2001 From: A Holt Date: Tue, 15 Jan 2019 13:50:37 -0500 Subject: [PATCH] Update main.yml --- roles/nodered/tasks/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/nodered/tasks/main.yml b/roles/nodered/tasks/main.yml index 68dd84809..bd4057b41 100644 --- a/roles/nodered/tasks/main.yml +++ b/roles/nodered/tasks/main.yml @@ -2,7 +2,7 @@ shell: curl -sL https://deb.nodesource.com/setup_8.x | bash - args: warn: no - when: internet_available and (is_debian_8 or is_debian_9) and nodered_install + when: internet_available and (is_debian_8 or is_debian_9 or is_ubuntu_16 or is_ubuntu_17) and nodered_install # NOT NEC TO TEST FOR is_raspbian_8 OR is_raspbian_9 AS /opt/iiab/iiab/vars/.yml # DEFINES THESE AS SUBSETS OF is_debian_8 OR is_debian_9 (FOR NOW!) @@ -12,7 +12,7 @@ # name: nodejs=8.x state: latest # state: present - when: internet_available and (is_debian_8 or is_debian_9) and nodered_install + when: internet_available and (is_debian_8 or is_debian_9 or is_ubuntu_16 or is_ubuntu_17) and nodered_install # 2019-01-15: WE'RE BORROWING npm INSTALLATION TRICKS FROM MID-2018 SUGARIZER: # https://github.com/iiab/iiab/blob/master/roles/sugarizer/tasks/main.yml#L77-L94 @@ -23,7 +23,7 @@ - nodejs - npm state: latest - when: internet_available and not (is_debian_8 or is_debian_9) and nodered_install + when: internet_available and not (is_debian_8 or is_debian_9 or is_ubuntu_16 or is_ubuntu_17) and nodered_install - name: 'npm install node-red packages globally: node-red, node-red-admin, node-red-dashboard'