X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=packer%2Fprovision%2Flocal-docker.yaml;h=0d0d86c1bdafd73071edb17928355f6d4e06fd48;hb=4844bb9b152df7f0f0e8d72aa8b1258fa369dfaf;hp=0ae1352550e09db4af8b9e6cc65b4d9472fba091;hpb=8d6ce3f52a784b28b6506f74f5d67f77de36dd80;p=ci-management.git diff --git a/packer/provision/local-docker.yaml b/packer/provision/local-docker.yaml index 0ae135255..0d0d86c1b 100644 --- a/packer/provision/local-docker.yaml +++ b/packer/provision/local-docker.yaml @@ -142,7 +142,15 @@ 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 apt: @@ -233,26 +241,15 @@ become: true when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu' - - name: Clone rebar3 - git: - repo: 'https://github.com/erlang/rebar3.git' - dest: /tmp/rebar3 - version: v3.13 - when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu' - - - name: Install rebar3 to bin - copy: - src: /tmp/rebar3/rebar3 - dest: /usr/bin/rebar3 - mode: 0755 - remote_src: true + - name: 'Download latest rebar3 bin' + command: curl -o /usr/bin/rebar3 -L "https://s3.amazonaws.com/rebar3/rebar3" become: true when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu' - - name: Remove unused rebar3 source - file: - path: /tmp/rebar3 - state: absent + - file: + path: /usr/bin/rebar3 + mode: "+x" + become: true when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu' - name: Download geckodriver