mirror of
https://github.com/iiab/iiab.git
synced 2025-02-15 04:32:11 +00:00
Update main.yml
This commit is contained in:
parent
2daf332cf1
commit
1d75394002
1 changed files with 14 additions and 7 deletions
|
@ -12,23 +12,30 @@
|
|||
# daily builds @ www.debian.org/devel/debian-installer/ and Disco Dingo (Ubuntu
|
||||
# 19.04) https://launchpad.net/ubuntu/+source/nodejs to keep us informed!
|
||||
|
||||
- name: Set up Node.js {{ nodejs_version }} apt sources (debuntu distros UP TO 2017)
|
||||
#- name: Set up Node.js {{ nodejs_version }} apt sources (debuntu distros UP TO 2017)
|
||||
- name: Set up Node.js {{ nodejs_version }} apt sources (debuntu)
|
||||
shell: curl -sL https://deb.nodesource.com/setup_{{ nodejs_version }} | bash -
|
||||
args:
|
||||
warn: no
|
||||
when: internet_available
|
||||
when: internet_available and is_debuntu
|
||||
#when: internet_available and (is_debian_8 or is_debian_9 or is_ubuntu_16 or is_ubuntu_17)
|
||||
# NOT NEC TO TEST FOR is_raspbian_8 OR is_raspbian_9 AS /opt/iiab/iiab/vars/<OS>.yml
|
||||
# DEFINES THESE AS SUBSETS OF is_debian_8 OR is_debian_9 (FOR NOW!)
|
||||
|
||||
- name: Install Node.js {{ nodejs_version }} which includes /usr/bin/npm (debuntu distros UP TO 2017)
|
||||
package:
|
||||
#- name: Install Node.js {{ nodejs_version }} which includes /usr/bin/npm (debuntu distros UP TO 2017)
|
||||
- name: Install Node.js {{ nodejs_version }} which includes /usr/bin/npm (debuntu)
|
||||
apt:
|
||||
name: nodejs={{ nodejs_version }} # Nec to change above from 'package:' to 'apt:' ?
|
||||
# name: nodejs
|
||||
# state: latest
|
||||
when: internet_available
|
||||
when: internet_available and is_debuntu
|
||||
#when: internet_available and (is_debian_8 or is_debian_9 or is_ubuntu_16 or is_ubuntu_17)
|
||||
|
||||
- name: Install Node.js {{ nodejs_version }} which includes /usr/bin/npm (not debuntu)
|
||||
package:
|
||||
name: nodejs
|
||||
state: latest
|
||||
#state: present
|
||||
when: internet_available and not is_debuntu
|
||||
|
||||
# 2018-07-14: BOTH STEPS ABOVE TAKE TIME, but Raspbian (apt offers npm
|
||||
# 1.4.21) & Debian 9 (apt offers no npm!) STILL NEED the above
|
||||
# nodesource.com approach to get a version of npm that works with Sugarizer:
|
||||
|
|
Loading…
Reference in a new issue