Disable local-docker packages for ARM 63/71563/1
authorJessica Wagantall <jwagantall@linuxfoundation.org>
Wed, 31 Oct 2018 02:44:19 +0000 (19:44 -0700)
committerJessica Wagantall <jwagantall@linuxfoundation.org>
Wed, 31 Oct 2018 02:45:44 +0000 (19:45 -0700)
Only Install Chrome, Erlang, Rebar, Geckodriver
and Firefox for non ARM architectures builds.

Change-Id: Id02c767fa59623a0d99578ff39491911af44a2e0
Issue-ID: CIMAN-33
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
packer/provision/local-docker.yaml

index acf6fa4..bc7c19b 100644 (file)
         url: https://dl-ssl.google.com/linux/linux_signing_key.pub
         state: present
       become: true
+      when: "'x86_64' in ansible_architecture"
 
     - name: Add Google Chrome repo
       copy: content="deb http://dl.google.com/linux/chrome/deb/ stable main" dest={{apt_file}} owner=root group=root mode=644
       become: true
+      when: "'x86_64' in ansible_architecture"
 
     - name: Update apt cache
       apt: update_cache=yes
         name: google-chrome-stable
         state: present
       become: true
+      when: "'x86_64' in ansible_architecture"
 
     - name: Install Erlang dependency packages
       apt:
           - libsctp1
           - libwxbase3.0-0v5
       become: true
+      when: "'x86_64' in ansible_architecture"
 
     - name: Install Erlang
       apt:
         deb: https://packages.erlang-solutions.com/erlang/esl-erlang/FLAVOUR_1_general/esl-erlang_19.3.6-1~ubuntu~trusty_amd64.deb
       install_recommends: yes
       become: true
+      when: "'x86_64' in ansible_architecture"
 
     - name: Clone rebar3
       git:
         repo: 'https://github.com/erlang/rebar3.git'
         dest: /tmp/rebar3
+      when: "'x86_64' in ansible_architecture"
 
     - name: Bootstrap rebar3
       command: ./bootstrap
       args:
         chdir: /tmp/rebar3
+      when: "'x86_64' in ansible_architecture"
 
     - name: Install rebar3 to bin
       copy:
         mode: 0755
         remote_src: true
       become: true
+      when: "'x86_64' in ansible_architecture"
 
     - name: Remove unused rebar3 source
       file:
         path: /tmp/rebar3
         state: absent
+      when: "'x86_64' in ansible_architecture"
 
     - name: Download geckodriver
       unarchive:
         mode: 0755
         remote_src: yes
       become: true
+      when: "'x86_64' in ansible_architecture"
 
     - name: Download Firefox version 55.0.3
       unarchive:
         dest: /opt
         mode: 0755
         remote_src: yes
+      when: "'x86_64' in ansible_architecture"
       become: true
 
     - name: Create symbolic link to firefox bin
         src: "/opt/firefox/firefox"
         dest: "/usr/bin/firefox"
         state: link
+      when: "'x86_64' in ansible_architecture"
       become: true