Update packer for Ubuntu 20.04 67/130767/2
authorJessica Wagantall <jwagantall@linuxfoundation.org>
Tue, 6 Sep 2022 19:28:28 +0000 (12:28 -0700)
committerJessica Wagantall <jwagantall@linuxfoundation.org>
Tue, 6 Sep 2022 19:31:05 +0000 (12:31 -0700)
Update supporting packages available for Ubuntu 20.04
Isolate the packages needed for Ubuntu 18.04
Remove duplicates

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

packer/provision/local-docker.yaml

index 0d0d86c..c0c0233 100644 (file)
       become: true
       when: ansible_distribution == 'Ubuntu' and ansible_distribution_version == '20.04'
 
-    - name: Install supporting packages
+    - name: Install supporting packages (Ubuntu 18.04)
       apt:
         name:
           - unzip
           - crudini
           - maven
           - python-ncclient
+        update_cache: yes
+        state: fixed
+      become: true
+      when: ansible_distribution == 'Ubuntu' and ansible_distribution_version == '18.04'
+
+    - name: Install supporting packages (Ubuntu 20.04)
+      apt:
+        name:
+          - unzip
+          - xz-utils
+          - libxml-xpath-perl
+          - wget
+          - make
+          - sshuttle
+          - netcat
+          - libssl-dev
+          - libffi-dev
           - xmlstarlet
           - xvfb
           - crudini
           - maven
-          - python-ncclient
         update_cache: yes
         state: fixed
       become: true
-      when: ansible_distribution == 'Ubuntu'
+      when: ansible_distribution == 'Ubuntu' and ansible_distribution_version == '20.04'
 
     - name: Install npm and addon packages
       apt: