From: Bengt Thuree Date: Tue, 30 Aug 2022 04:32:23 +0000 (+1000) Subject: Fix: Replace nodejs-dev with libnode-dev on 20.04 Ubuntu X-Git-Url: https://gerrit.onap.org/r/gitweb?p=ci-management.git;a=commitdiff_plain;h=4844bb9b152df7f0f0e8d72aa8b1258fa369dfaf Fix: Replace nodejs-dev with libnode-dev on 20.04 Ubuntu Should fix IT-24453 Issue-ID: CIMAN-33 Signed-off-by: Bengt Thuree Change-Id: Ieaffcda560eaa39d49ad3a66ddf1c19f0a286e8c --- diff --git a/packer/provision/local-builder.yaml b/packer/provision/local-builder.yaml index 18017b888..fa1038d17 100644 --- a/packer/provision/local-builder.yaml +++ b/packer/provision/local-builder.yaml @@ -85,7 +85,15 @@ update_cache: yes state: fixed become: true - when: ansible_distribution == 'Ubuntu' + when: ansible_distribution == 'Ubuntu' and ansible_distribution_version == '18.04' + + - name: Install libnode-dev dep for npm + apt: + name: libnode-dev + update_cache: yes + state: fixed + become: true + when: ansible_distribution == 'Ubuntu' and ansible_distribution_version == '20.04' - name: Install base packages apt: diff --git a/packer/provision/local-docker.yaml b/packer/provision/local-docker.yaml index 869202d75..0d0d86c1b 100644 --- a/packer/provision/local-docker.yaml +++ b/packer/provision/local-docker.yaml @@ -142,7 +142,15 @@ update_cache: yes state: fixed become: true - when: ansible_distribution == 'Ubuntu' + when: ansible_distribution == 'Ubuntu' and ansible_distribution_version == '18.04' + + - name: Install libnode-dev dep for npm + apt: + name: libnode-dev + update_cache: yes + state: fixed + become: true + when: ansible_distribution == 'Ubuntu' and ansible_distribution_version == '20.04' - name: Install supporting packages apt: