summaryrefslogtreecommitdiffstats
path: root/packer
diff options
context:
space:
mode:
authorJessica Wagantall <jwagantall@linuxfoundation.org>2022-09-06 18:40:47 -0700
committerJessica Wagantall <jwagantall@linuxfoundation.org>2022-09-06 18:40:47 -0700
commit1c371f0ee90a739fc934fd052dbfe9e65a97fdaa (patch)
tree10f66d575fd6372b8ba83a564aa1cc1f50816a3b /packer
parentaea673bb5fc4f92297ef3798abdd203157359d08 (diff)
Update local-docker
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
Diffstat (limited to 'packer')
-rw-r--r--packer/provision/local-docker.yaml3
1 files changed, 3 insertions, 0 deletions
diff --git a/packer/provision/local-docker.yaml b/packer/provision/local-docker.yaml
index c0c0233f2..6e3aad8c5 100644
--- a/packer/provision/local-docker.yaml
+++ b/packer/provision/local-docker.yaml
@@ -209,14 +209,17 @@
- 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: