Update local-builder 92/130792/1
authorJessica Wagantall <jwagantall@linuxfoundation.org>
Wed, 7 Sep 2022 19:00:18 +0000 (12:00 -0700)
committerJessica Wagantall <jwagantall@linuxfoundation.org>
Wed, 7 Sep 2022 19:00:18 +0000 (12:00 -0700)
Update supporting packages for Ubuntu 18.04
and 20.04
Remove duplicates

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

packer/provision/local-builder.yaml

index fa1038d..5034ef2 100644 (file)
@@ -95,7 +95,7 @@
       become: true
       when: ansible_distribution == 'Ubuntu' and ansible_distribution_version == '20.04'
 
-    - name: Install base 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: