1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

Merge pull request #436 from holta/master

use Ansible to pin nodejs to 6.x (curl was not suffic on WiFi install)
This commit is contained in:
A Holt 2017-10-22 02:45:01 -04:00 committed by GitHub
commit ad8509bbbb

View file

@ -16,12 +16,10 @@
shell: curl -sL https://deb.nodesource.com/setup_6.x | bash - shell: curl -sL https://deb.nodesource.com/setup_6.x | bash -
when: internet_available and is_debuntu when: internet_available and is_debuntu
- name: Install sugarizer required packages - is_debuntu - name: Install nodejs=6.* which includes /usr/bin/npm - is_debuntu
package: name={{ item }} package: name=nodejs=6.*
state=present state=present
when: internet_available and is_debuntu when: internet_available and is_debuntu
with_items:
- nodejs
- name: Install npm non is_debuntu - name: Install npm non is_debuntu
package: name={{ item }} package: name={{ item }}
@ -31,7 +29,7 @@
- nodejs - nodejs
- npm - 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 - name: check for sugarizer already installed
stat: path={{ sugarizer_location }}/sugarizer/server/node_modules stat: path={{ sugarizer_location }}/sugarizer/server/node_modules
register: npm register: npm