summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--packer/provision/local-docker.yaml14
1 files changed, 12 insertions, 2 deletions
diff --git a/packer/provision/local-docker.yaml b/packer/provision/local-docker.yaml
index d54746f08..2267a2509 100644
--- a/packer/provision/local-docker.yaml
+++ b/packer/provision/local-docker.yaml
@@ -116,6 +116,8 @@
- make
- sshuttle
- netcat
+ - nodejs-dev
+ - libssl1.0-dev
- libssl-dev
- libffi-dev
- xmlstarlet
@@ -128,11 +130,19 @@
- crudini
- maven
- python-ncclient
- - nodejs-dev
- - node-gyp
- nodejs
- npm
update_cache: yes
+ state: fixed
+ become: true
+ when: ansible_distribution == 'Ubuntu'
+
+ - name: Install npm addon packages
+ apt:
+ name:
+ - node-gyp
+ update_cache: yes
+ state: fixed
become: true
when: ansible_distribution == 'Ubuntu'