diff --git a/roles/sugarizer/tasks/main.yml b/roles/sugarizer/tasks/main.yml index 507c6afed..8bb5985ed 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 includes /usr/bin/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 }} @@ -31,7 +29,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