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:
parent
4e4926255f
commit
908bb54145
1 changed files with 7 additions and 15 deletions
|
@ -12,20 +12,24 @@
|
||||||
src={{ sugarizer_location }}/{{ sugarizer_version }}
|
src={{ sugarizer_location }}/{{ sugarizer_version }}
|
||||||
state=link
|
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
|
- name: Install sugarizer required packages - is_debuntu
|
||||||
package: name={{ item }}
|
package: name={{ item }}
|
||||||
state=present
|
state=present
|
||||||
with_items:
|
|
||||||
- node-gyp
|
|
||||||
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 }}
|
||||||
state=present
|
state=present
|
||||||
|
when: internet_available and not is_debuntu
|
||||||
with_items:
|
with_items:
|
||||||
- nodejs
|
- nodejs
|
||||||
- npm
|
- npm
|
||||||
when: internet_available and not is_debuntu
|
|
||||||
|
|
||||||
# attempting to reinstall npn is broken on raspbian 9
|
# attempting to reinstall npn is broken on raspbian 9
|
||||||
- name: check for sugarizer already installed
|
- name: check for sugarizer already installed
|
||||||
|
@ -37,18 +41,6 @@
|
||||||
npm_exists: True
|
npm_exists: True
|
||||||
when: npm.stat.exists is defined and npm.stat.exists
|
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
|
- name: Create systemd files and copy our ini file
|
||||||
template: src={{ item.src }}
|
template: src={{ item.src }}
|
||||||
dest={{ item.dest }}
|
dest={{ item.dest }}
|
||||||
|
|
Loading…
Reference in a new issue