From 3ef77c3962b44ac3aad1c94e1ea8bbaf50ecb6b6 Mon Sep 17 00:00:00 2001 From: A Holt Date: Fri, 20 Oct 2017 10:33:34 -0400 Subject: [PATCH] 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 }}