X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=packer%2Fprovision%2Flocal-builder.yaml;h=5034ef2d06ce7aaf1a97458301df8de012161b23;hb=a6a20d7926b0647907f188a492031635e8aefd86;hp=18017b888a404dc759fefef9ea13613206ab0db3;hpb=15d3a12c2973b0dc3a88a917a741e26ce4d234ca;p=ci-management.git diff --git a/packer/provision/local-builder.yaml b/packer/provision/local-builder.yaml index 18017b888..5034ef2d0 100644 --- a/packer/provision/local-builder.yaml +++ b/packer/provision/local-builder.yaml @@ -85,9 +85,17 @@ 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 + - name: Install supporting packages (Ubuntu 18.04) apt: name: - unzip @@ -104,14 +112,31 @@ - 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: