From dbba0aa4c389e717f043d50d5653d7ac1cb34011 Mon Sep 17 00:00:00 2001 From: Jessica Wagantall Date: Mon, 16 Mar 2020 09:28:18 -0700 Subject: Fix NPM dependency order Some NPM packages need a specific order of install and one library in particular is just needed for Ubuntu 18 Issue-ID: CIMAN-33 Signed-off-by: Jessica Wagantall Change-Id: I1c22f3ed7916151c6bde7d1e6de41636be93ff59 --- packer/provision/local-docker.yaml | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) (limited to 'packer') 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 -- cgit 1.2.3-korg