Chore: Update local-docker
[ci-management.git] / packer / provision / local-docker.yaml
index 869202d..dad1cba 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
+    - 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:
     - name: npm self-update
       command: npm install npm@{{ npm_version }} -g
       become: true
+      when: ansible_distribution == 'Ubuntu'
 
     - name: npm install n module
       command: npm install n -g
       become: true
+      when: ansible_distribution == 'Ubuntu'
 
     - name: Upgrade latest stable node version
       command: n stable | PATH="$PATH"
       become: true
+      when: ansible_distribution == 'Ubuntu'
 
     - name: Add Google Chrome key
       apt_key:
     - name: Install Erlang dependency packages
       apt:
         name:
-          - libwxgtk3.0-0v5
           - libsctp1
           - libwxbase3.0-0v5
       become: true
       when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu'
 
+    - name: Install Erlang dependency package libwxgtk3 for 18.04
+      apt:
+        name:
+          - libwxgtk3.0-0v5
+      become: true
+      when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu' and ansible_distribution_version == '18.04'
+
+    - name: Install Erlang dependency package libwxgtk3 for 20.04
+      apt:
+        name:
+          - libwxgtk3.0-gtk3-0v5
+      become: true
+      when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu' and ansible_distribution_version == '20.04'
+
     - name: Install Erlang
       apt:
         deb: https://packages.erlang-solutions.com/erlang/debian/pool/esl-erlang_19.3.6-1~ubuntu~trusty_amd64.deb