summaryrefslogtreecommitdiffstats
path: root/packer/provision
diff options
context:
space:
mode:
Diffstat (limited to 'packer/provision')
-rw-r--r--packer/provision/local-docker.yaml28
1 files changed, 22 insertions, 6 deletions
diff --git a/packer/provision/local-docker.yaml b/packer/provision/local-docker.yaml
index 2267a2509..6fce67a1b 100644
--- a/packer/provision/local-docker.yaml
+++ b/packer/provision/local-docker.yaml
@@ -106,7 +106,25 @@
become: true
when: ansible_distribution == 'Ubuntu'
- - name: Install base packages
+ - name: Install nodejs-dev dep for npm
+ apt:
+ name:
+ - nodejs-dev
+ update_cache: yes
+ state: fixed
+ become: true
+ when: ansible_distribution == 'Ubuntu'
+
+ - name: Install nodejs-dev libssl1.0-dev dep
+ apt:
+ name:
+ - libssl1.0-dev
+ update_cache: yes
+ state: fixed
+ become: true
+ when: ansible_distribution == 'Ubuntu' and ansible_distribution_version == '18.04'
+
+ - name: Install supporting packages
apt:
name:
- unzip
@@ -116,8 +134,6 @@
- make
- sshuttle
- netcat
- - nodejs-dev
- - libssl1.0-dev
- libssl-dev
- libffi-dev
- xmlstarlet
@@ -130,16 +146,16 @@
- crudini
- maven
- python-ncclient
- - nodejs
- - npm
update_cache: yes
state: fixed
become: true
when: ansible_distribution == 'Ubuntu'
- - name: Install npm addon packages
+ - name: Install npm and addon packages
apt:
name:
+ - nodejs
+ - npm
- node-gyp
update_cache: yes
state: fixed