NPM and supporting libraries are only installed for
Ubuntu. Skip NPM upgrades for CentOS.
Issue-ID: CIMAN-33
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
Change-Id: I7d48c2c31c5ac9da9f85510ee626bc9dc6bd820b
- name: npm self-update
command: npm install npm@{{ npm_version }} -g
become: true
+ when: ansible_distribution == 'Ubuntu'
- name: npm install n module
command: npm install n -g
become: true
+ when: ansible_distribution == 'Ubuntu'
- name: Upgrade latest stable node version
command: n stable | PATH="$PATH"
become: true
+ when: ansible_distribution == 'Ubuntu'
- name: Add Google Chrome key
apt_key: