1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-15 04:32:11 +00:00

Nodejs 6.X - npm is not available standalone

This commit is contained in:
Jerry Vonau 2017-10-17 17:12:40 -05:00
parent 4e4926255f
commit 908bb54145

View file

@ -12,20 +12,24 @@
src={{ sugarizer_location }}/{{ sugarizer_version }}
state=link
- name: Set up apt sources on is_debuntu
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 }}
state=present
with_items:
- node-gyp
when: internet_available and is_debuntu
with_items:
- nodejs
- name: Install npm non is_debuntu
package: name={{ item }}
state=present
when: internet_available and not is_debuntu
with_items:
- nodejs
- npm
when: internet_available and not is_debuntu
# attempting to reinstall npn is broken on raspbian 9
- name: check for sugarizer already installed
@ -37,18 +41,6 @@
npm_exists: True
when: npm.stat.exists is defined and npm.stat.exists
- name: Set up apt sources on is_debuntu
shell: curl -sL https://deb.nodesource.com/setup_6.x | bash -
when: internet_available and is_debuntu
- name: Actually get it installed on is_debuntu
package: name={{ item }}
state=present
with_items:
- nodejs
- npm
when: internet_available and is_debuntu
- name: Create systemd files and copy our ini file
template: src={{ item.src }}
dest={{ item.dest }}