Fix: Replace nodejs-dev with libnode-dev on 20.04 Ubuntu 01/130501/2
authorBengt Thuree <bthuree@linuxfoundation.org>
Tue, 30 Aug 2022 04:32:23 +0000 (14:32 +1000)
committerBengt Thuree <bthuree@linuxfoundation.org>
Tue, 30 Aug 2022 07:44:14 +0000 (17:44 +1000)
Should fix IT-24453

Issue-ID: CIMAN-33
Signed-off-by: Bengt Thuree <bthuree@linuxfoundation.org>
Change-Id: Ieaffcda560eaa39d49ad3a66ddf1c19f0a286e8c

packer/provision/local-builder.yaml
packer/provision/local-docker.yaml

index 18017b8..fa1038d 100644 (file)
         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:
index 869202d..0d0d86c 100644 (file)
         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: