2 - import_playbook: ../common-packer/provision/docker.yaml
8 apt_file: /etc/apt/sources.list.d/google-chrome.list
9 docker_compose_version: 1.29.2
10 glide_checksum: sha256:c403933503ea40308ecfadcff581ff0dc3190c57958808bb9eed016f13f6f32c
11 glide_version: v0.13.1
13 npm_version: "6.14.13"
16 - name: "Checking for x86_64"
19 golang_checksum: sha256:07d81c6b6b4c2dcf1b5ef7c27aaebd3691cdb40548500941f92b221147c5d9c7
20 when: "'x86_64' in ansible_architecture"
22 - name: "Checking for aarch64"
25 golang_checksum: sha256:d31ecae36efea5197af271ccce86ccc2baf10d2e04f20d0fb75556ecf0614dad
26 when: "'aarch64' in ansible_architecture"
28 - name: 'Install Docker Compose {{docker_compose_version}}'
29 command: curl -o /usr/local/bin/docker-compose -L "https://github.com/docker/compose/releases/download/{{docker_compose_version}}/docker-compose-Linux-x86_64"
33 path: /usr/local/bin/docker-compose
37 - name: 'Install GoLang {{golang_version}}'
39 - name: 'Fetch golang {{golang_version}} to /tmp/go{{golang_version}}.linux-{{host_arch}}.tar.gz'
41 url: 'https://storage.googleapis.com/golang/go{{golang_version}}.linux-{{host_arch}}.tar.gz'
42 dest: '/tmp/go{{golang_version}}.linux-{{host_arch}}.tar.gz'
43 checksum: '{{golang_checksum}}'
44 - name: 'Install golang {{golang_version}} to /usr/local'
46 src: '/tmp/go{{golang_version}}.linux-{{host_arch}}.tar.gz'
50 - name: Create symbolic link to go bin
52 src: "/usr/local/go/bin/go"
57 - name: Install libxml2-utils
62 when: ansible_distribution == 'Ubuntu'
64 - name: Install python-tox and deps
70 - more-itertools~=5.0.0
76 repo: ppa:deadsnakes/ppa
79 when: ansible_distribution == 'Ubuntu'
81 - name: Update and upgrade apt packages
86 when: ansible_distribution == 'Ubuntu'
88 - name: Install Python 3.6 and packages
99 when: ansible_distribution == 'Ubuntu'
101 - name: Install Python 3.7
108 when: ansible_distribution == 'Ubuntu'
110 - name: Install Python 3.8
117 when: ansible_distribution == 'Ubuntu'
119 - name: Install Python 3.9
125 - python3.9-distutils
127 when: ansible_distribution == 'Ubuntu'
129 - name: Install nodejs-dev libssl1.0-dev dep
136 when: ansible_distribution == 'Ubuntu' and ansible_distribution_version == '18.04'
138 - name: Install nodejs-dev dep for npm
145 when: ansible_distribution == 'Ubuntu' and ansible_distribution_version == '18.04'
147 - name: Install libnode-dev dep for npm
153 when: ansible_distribution == 'Ubuntu' and ansible_distribution_version == '20.04'
155 - name: Install supporting packages (Ubuntu 18.04)
175 when: ansible_distribution == 'Ubuntu' and ansible_distribution_version == '18.04'
177 - name: Install supporting packages (Ubuntu 20.04)
197 when: ansible_distribution == 'Ubuntu' and ansible_distribution_version == '20.04'
199 - name: Install npm and addon packages
208 when: ansible_distribution == 'Ubuntu'
210 - name: npm self-update
211 command: npm install npm@{{ npm_version }} -g
213 when: ansible_distribution == 'Ubuntu'
215 - name: npm install n module
216 command: npm install n -g
218 when: ansible_distribution == 'Ubuntu'
220 - name: Upgrade latest stable node version
221 command: n stable | PATH="$PATH"
223 when: ansible_distribution == 'Ubuntu'
225 - name: Add Google Chrome key
227 url: https://dl-ssl.google.com/linux/linux_signing_key.pub
230 when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu'
232 - name: Add Google Chrome repo
233 copy: content="deb http://dl.google.com/linux/chrome/deb/ stable main" dest={{apt_file}} owner=root group=root mode=644
235 when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu'
237 - name: Update apt cache
238 apt: update_cache=yes
240 when: ansible_distribution == 'Ubuntu'
242 - name: Install Google Chrome
244 name: google-chrome-stable
247 when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu'
249 - name: Install Erlang dependency packages
255 when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu'
257 - name: Install Erlang dependency package libwxgtk3 for 18.04
262 when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu' and ansible_distribution_version == '18.04'
264 - name: Install Erlang dependency package libwxgtk3 for 20.04
267 - libwxgtk3.0-gtk3-0v5
269 when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu' and ansible_distribution_version == '20.04'
271 - name: Download and install libssl Ubuntu 20.04
273 deb: http://security.ubuntu.com/ubuntu/pool/main/o/openssl1.0/libssl1.0.0_1.0.2n-1ubuntu5.10_amd64.deb
275 when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu' and ansible_distribution_version == '20.04'
277 - name: Install Erlang
279 deb: https://packages.erlang-solutions.com/erlang/debian/pool/esl-erlang_19.3.6-1~ubuntu~trusty_amd64.deb
281 when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu'
283 - name: 'Download latest rebar3 bin'
284 command: curl -o /usr/bin/rebar3 -L "https://s3.amazonaws.com/rebar3/rebar3"
286 when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu'
289 path: /usr/bin/rebar3
292 when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu'
294 - name: Download geckodriver
296 src: https://github.com/mozilla/geckodriver/releases/download/v0.18.0/geckodriver-v0.18.0-linux64.tar.gz
301 when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu'
303 - name: Download Firefox version 55.0.3
305 src: https://download-installer.cdn.mozilla.net/pub/firefox/releases/55.0.3/linux-x86_64/en-US/firefox-55.0.3.tar.bz2
310 when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu'
312 - name: Create symbolic link to firefox bin
314 src: "/opt/firefox/firefox"
315 dest: "/usr/bin/firefox"
318 when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu'
320 - name: Install jinja2
325 when: ansible_architecture == 'x86_64'