From b1e166db69235111f780322cf2fa87e00dc8ea4e Mon Sep 17 00:00:00 2001 From: A Holt Date: Thu, 19 Oct 2017 21:16:08 -0400 Subject: [PATCH 1/3] typo in comment: npn -> npm --- roles/sugarizer/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/sugarizer/tasks/main.yml b/roles/sugarizer/tasks/main.yml index 507c6afed..0110beccc 100644 --- a/roles/sugarizer/tasks/main.yml +++ b/roles/sugarizer/tasks/main.yml @@ -31,7 +31,7 @@ - nodejs - npm -# attempting to reinstall npn is broken on raspbian 9 +# attempting to reinstall npm is broken on raspbian 9 - name: check for sugarizer already installed stat: path={{ sugarizer_location }}/sugarizer/server/node_modules register: npm From 3ef77c3962b44ac3aad1c94e1ea8bbaf50ecb6b6 Mon Sep 17 00:00:00 2001 From: A Holt Date: Fri, 20 Oct 2017 10:33:34 -0400 Subject: [PATCH 2/3] use Andible to pin nodejs to 6.x (curl was not suffic on WiFi install) --- roles/sugarizer/tasks/main.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/roles/sugarizer/tasks/main.yml b/roles/sugarizer/tasks/main.yml index 0110beccc..d0e01ec9d 100644 --- a/roles/sugarizer/tasks/main.yml +++ b/roles/sugarizer/tasks/main.yml @@ -16,12 +16,10 @@ shell: curl -sL https://deb.nodesource.com/setup_6.x | bash - when: internet_available and is_debuntu -- name: Install sugarizer required packages - is_debuntu - package: name={{ item }} +- name: Install nodejs=6.* which also installs npm - is_debuntu + package: name=nodejs=6.* state=present when: internet_available and is_debuntu - with_items: - - nodejs - name: Install npm non is_debuntu package: name={{ item }} From 0b2a86a6bcc8f0f6954c6b9f65422d9860a68e98 Mon Sep 17 00:00:00 2001 From: A Holt Date: Fri, 20 Oct 2017 12:57:13 -0400 Subject: [PATCH 3/3] clarify that nodejs 6.x includes /usr/bin/npm --- roles/sugarizer/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/sugarizer/tasks/main.yml b/roles/sugarizer/tasks/main.yml index d0e01ec9d..8bb5985ed 100644 --- a/roles/sugarizer/tasks/main.yml +++ b/roles/sugarizer/tasks/main.yml @@ -16,7 +16,7 @@ shell: curl -sL https://deb.nodesource.com/setup_6.x | bash - when: internet_available and is_debuntu -- name: Install nodejs=6.* which also installs npm - is_debuntu +- name: Install nodejs=6.* which includes /usr/bin/npm - is_debuntu package: name=nodejs=6.* state=present when: internet_available and is_debuntu