Fix: Use same Node/NPM install step for Ubuntu 99/134199/1
authorJessica Wagantall <jwagantall@linuxfoundation.org>
Mon, 17 Apr 2023 16:23:15 +0000 (09:23 -0700)
committerJessica Wagantall <jwagantall@linuxfoundation.org>
Mon, 17 Apr 2023 16:23:15 +0000 (09:23 -0700)
Remove separate solution for node install for Ubuntu18.04

Issue-ID: CIMAN-33
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
Change-Id: I86956efbd3e653725a71b39e5154d755ed358452

packer/provision/local-docker.yaml

index ac14803..16c9958 100644 (file)
@@ -10,7 +10,6 @@
     glide_checksum: sha256:c403933503ea40308ecfadcff581ff0dc3190c57958808bb9eed016f13f6f32c
     glide_version: v0.13.1
     golang_version: 1.9.1
-    npm_version: "6.14.13"
 
   tasks:
     - name: "Checking for x86_64"
       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 nodejs-dev dep for npm
-      apt:
-        name:
-          - nodejs-dev
-        update_cache: yes
-        state: fixed
-      become: true
-      when: ansible_distribution == 'Ubuntu' and ansible_distribution_version == '18.04'
-
     - name: Install supporting packages (Ubuntu 18.04)
       apt:
         name:
       become: true
       when: ansible_distribution == 'Ubuntu' and ansible_distribution_version == '20.04'
 
-    - name: Install npm and addon packages
-      apt:
-        name:
-          - nodejs
-          - npm
-          - node-gyp
-        update_cache: yes
-        state: fixed
-      become: true
-      when: ansible_distribution == 'Ubuntu' and ansible_distribution_version == '18.04'
-
     - name: Install nodejs
       block:
         - name: install nodejs prerequisites
               - nodejs
             state: present
           become: true
-      when: ansible_distribution == 'Ubuntu' and ansible_distribution_version == '20.04'
+      when: ansible_distribution == 'Ubuntu'
 
     - name: Check nodejs and npm versions
       block: