From 5f98d3781ac7bfd12149b9fa0d5541ba9484f9fc Mon Sep 17 00:00:00 2001 From: A Holt Date: Tue, 27 Jul 2021 13:55:20 -0400 Subject: [PATCH] nodejs/tasks/install.yml: debuntu/redhat legacy/comments --- roles/nodejs/tasks/install.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/roles/nodejs/tasks/install.yml b/roles/nodejs/tasks/install.yml index ba3536c96..33039d899 100644 --- a/roles/nodejs/tasks/install.yml +++ b/roles/nodejs/tasks/install.yml @@ -65,12 +65,12 @@ # state: absent # when: internet_available and is_debuntu -- name: Set up Node.js {{ nodejs_version }} apt sources (debuntu) +- name: Set up Node.js {{ nodejs_version }} apt sources shell: curl -sL https://deb.nodesource.com/setup_{{ nodejs_version }} | bash - args: warn: no creates: /etc/apt/sources.list.d/nodesource.list - when: internet_available and is_debuntu + when: internet_available #when: internet_available and (is_debian_8 or is_debian_9 or is_ubuntu_16 or is_ubuntu_17) # 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!) @@ -80,20 +80,20 @@ # "npm install -g npm@latest" (all *SHOULD* be magically fixed by 2019-04-18 ?) # Forces update -- name: Install latest Node.js {{ nodejs_version }} which includes /usr/bin/npm (debuntu) +- name: Install latest Node.js {{ nodejs_version }} which includes /usr/bin/npm package: #name: nodejs={{ nodejs_version }} name: nodejs state: latest #state: present - when: internet_available and is_debuntu + when: internet_available #when: internet_available and (is_debian_8 or is_debian_9 or is_ubuntu_16 or is_ubuntu_17) -- name: Set up & install Node.js {{ nodejs_version }} which includes /usr/bin/npm (redhat) - shell: curl -sL https://rpm.nodesource.com/setup_{{ nodejs_version }} | bash - - args: - warn: no - when: internet_available and is_redhat +# - name: Set up & install Node.js {{ nodejs_version }} which includes /usr/bin/npm (redhat) +# shell: curl -sL https://rpm.nodesource.com/setup_{{ nodejs_version }} | bash - +# args: +# warn: no +# when: internet_available and is_redhat # 2018-07-14: BOTH STEPS ABOVE TAKE TIME, but Raspbian (apt offers npm