1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 11:42:08 +00:00

Merge pull request #519 from holta/master

Node.js 6.11.5 & 6.12.0 were colliding on Raspbian: is this better?
This commit is contained in:
A Holt 2017-11-13 22:43:57 -05:00 committed by GitHub
commit 0175686c67
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,13 +12,15 @@
src={{ sugarizer_location }}/{{ sugarizer_version }}
state=link
- name: Set up apt sources (debuntu)
- name: Set up Node.js 6.x apt sources (debuntu)
shell: curl -sL https://deb.nodesource.com/setup_6.x | bash -
when: internet_available and is_debuntu
- name: Install nodejs=6.* which includes /usr/bin/npm (debuntu)
package: name=nodejs=6.*
state=present
- name: Install latest Node.js which includes /usr/bin/npm (debuntu)
package: name=nodejs
state=latest
# package: name=nodejs=6.*
# state=present
when: internet_available and is_debuntu
- name: Install npm (OS's other than debuntu)
@ -55,14 +57,14 @@
# dest=/etc/apache2/sites-enabled/sugarizer.conf
# state=link
- name: Create the express framework for node.js (OS's other than Fedora 18)
- name: Create the express framework for Node.js (OS's other than Fedora 18)
shell: npm install
args:
chdir: "{{ sugarizer_location }}/sugarizer/server"
creates: "{{ sugarizer_location }}/sugarizer/server/node_modules"
when: not is_F18 and not npm_exists
- name: Create the express framework for node.js (Fedora 18)
- name: Create the express framework for Node.js (Fedora 18)
shell: npm install
args:
chdir: "{{ sugarizer_location }}/sugarizer/server"