mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 11:42:08 +00:00
Update main.yml
This commit is contained in:
parent
1d75394002
commit
5e4eadeef9
1 changed files with 11 additions and 7 deletions
|
@ -25,16 +25,20 @@
|
||||||
#- 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 distros UP TO 2017)
|
||||||
- name: Install Node.js {{ nodejs_version }} which includes /usr/bin/npm (debuntu)
|
- name: Install Node.js {{ nodejs_version }} which includes /usr/bin/npm (debuntu)
|
||||||
apt:
|
apt:
|
||||||
name: nodejs={{ nodejs_version }} # Nec to change above from 'package:' to 'apt:' ?
|
name: nodejs={{ nodejs_version }}
|
||||||
|
state: latest
|
||||||
|
# package:
|
||||||
|
# name: nodejs
|
||||||
|
# state: latest
|
||||||
|
# state: present
|
||||||
when: internet_available and is_debuntu
|
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)
|
#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)
|
- name: Install Node.js {{ nodejs_version }} which includes /usr/bin/npm (redhat)
|
||||||
package:
|
shell: curl -sL https://rpm.nodesource.com/setup_{{ nodejs_version }} | bash -
|
||||||
name: nodejs
|
args:
|
||||||
state: latest
|
warn: no
|
||||||
#state: present
|
when: internet_available and is_redhat
|
||||||
when: internet_available and not is_debuntu
|
|
||||||
|
|
||||||
# 2018-07-14: BOTH STEPS ABOVE TAKE TIME, but Raspbian (apt offers npm
|
# 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
|
# 1.4.21) & Debian 9 (apt offers no npm!) STILL NEED the above
|
||||||
|
|
Loading…
Reference in a new issue