2 - import_playbook: ../common-packer/provision/docker.yaml
8 apt_file: /etc/apt/sources.list.d/google-chrome.list
9 docker_compose_version: 1.17.1
10 glide_checksum: sha256:c403933503ea40308ecfadcff581ff0dc3190c57958808bb9eed016f13f6f32c
11 glide_version: v0.13.1
15 - name: "Checking for x86_64"
18 golang_checksum: sha256:07d81c6b6b4c2dcf1b5ef7c27aaebd3691cdb40548500941f92b221147c5d9c7
19 when: "'x86_64' in ansible_architecture"
21 - name: "Checking for aarch64"
24 golang_checksum: sha256:d31ecae36efea5197af271ccce86ccc2baf10d2e04f20d0fb75556ecf0614dad
25 when: "'aarch64' in ansible_architecture"
27 - name: 'Install Docker Compose {{docker_compose_version}}'
28 command: curl -o /usr/local/bin/docker-compose -L "https://github.com/docker/compose/releases/download/{{docker_compose_version}}/docker-compose-Linux-x86_64"
32 path: /usr/local/bin/docker-compose
36 - name: 'Install GoLang {{golang_version}}'
38 - name: 'Fetch golang {{golang_version}} to /tmp/go{{golang_version}}.linux-{{host_arch}}.tar.gz'
40 url: 'https://storage.googleapis.com/golang/go{{golang_version}}.linux-{{host_arch}}.tar.gz'
41 dest: '/tmp/go{{golang_version}}.linux-{{host_arch}}.tar.gz'
42 checksum: '{{golang_checksum}}'
43 - name: 'Install golang {{golang_version}} to /usr/local'
45 src: '/tmp/go{{golang_version}}.linux-{{host_arch}}.tar.gz'
49 - name: Create symbolic link to go bin
51 src: "/usr/local/go/bin/go"
56 - name: Install libxml2-utils
61 when: ansible_distribution == 'Ubuntu'
63 - name: Install python-tox and deps
69 - more-itertools~=5.0.0
75 repo: ppa:deadsnakes/ppa
78 when: ansible_distribution == 'Ubuntu'
80 - name: Update and upgrade apt packages
85 when: ansible_distribution == 'Ubuntu'
87 - name: Install Python 3.6 and packages
98 when: ansible_distribution == 'Ubuntu'
100 - name: Install Python 3.7
107 when: ansible_distribution == 'Ubuntu'
109 - name: Install Python 3.8
116 when: ansible_distribution == 'Ubuntu'
118 - name: Install nodejs-dev libssl1.0-dev dep
125 when: ansible_distribution == 'Ubuntu' and ansible_distribution_version == '18.04'
127 - name: Install nodejs-dev dep for npm
134 when: ansible_distribution == 'Ubuntu'
136 - name: Install supporting packages
161 when: ansible_distribution == 'Ubuntu'
163 - name: Install npm and addon packages
172 when: ansible_distribution == 'Ubuntu'
174 - name: Add Google Chrome key
176 url: https://dl-ssl.google.com/linux/linux_signing_key.pub
179 when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu'
181 - name: Add Google Chrome repo
182 copy: content="deb http://dl.google.com/linux/chrome/deb/ stable main" dest={{apt_file}} owner=root group=root mode=644
184 when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu'
186 - name: Update apt cache
187 apt: update_cache=yes
189 when: ansible_distribution == 'Ubuntu'
191 - name: Install Google Chrome
193 name: google-chrome-stable
196 when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu'
198 - name: Install Erlang dependency packages
205 when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu'
207 - name: Install Erlang
209 deb: https://packages.erlang-solutions.com/erlang/debian/pool/esl-erlang_19.3.6-1~ubuntu~trusty_amd64.deb
211 when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu'
215 repo: 'https://github.com/erlang/rebar3.git'
217 when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu'
219 - name: Bootstrap rebar3
223 when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu'
225 - name: Install rebar3 to bin
227 src: /tmp/rebar3/rebar3
228 dest: /usr/bin/rebar3
232 when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu'
234 - name: Remove unused rebar3 source
238 when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu'
240 - name: Download geckodriver
242 src: https://github.com/mozilla/geckodriver/releases/download/v0.18.0/geckodriver-v0.18.0-linux64.tar.gz
247 when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu'
249 - name: Download Firefox version 55.0.3
251 src: https://download-installer.cdn.mozilla.net/pub/firefox/releases/55.0.3/linux-x86_64/en-US/firefox-55.0.3.tar.bz2
256 when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu'
258 - name: Create symbolic link to firefox bin
260 src: "/opt/firefox/firefox"
261 dest: "/usr/bin/firefox"
264 when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu'
266 - name: Install jinja2
271 when: ansible_architecture == 'x86_64'