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
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'
64 repo: ppa:deadsnakes/ppa
67 when: ansible_distribution == 'Ubuntu'
69 - name: Update and upgrade apt packages
74 when: ansible_distribution == 'Ubuntu'
76 - name: Install Python 3.6 and packages
87 when: ansible_distribution == 'Ubuntu'
89 - name: Install Python 3.7
96 when: ansible_distribution == 'Ubuntu'
98 - name: Install Python 3.8
105 when: ansible_distribution == 'Ubuntu'
107 - name: Install Python 3.9
113 - python3.9-distutils
115 when: ansible_distribution == 'Ubuntu'
117 - name: Install supporting packages (Ubuntu 18.04)
137 when: ansible_distribution == 'Ubuntu' and ansible_distribution_version == '18.04'
139 - name: Install supporting packages (Ubuntu 20.04)
159 when: ansible_distribution == 'Ubuntu' and ansible_distribution_version == '20.04'
161 - name: Install nodejs
163 - name: install nodejs prerequisites
166 - apt-transport-https
171 - name: add nodejs apt key
173 url: https://deb.nodesource.com/gpgkey/nodesource.gpg.key
176 - name: add nodejs repository
178 repo: deb https://deb.nodesource.com/node_19.x {{ ansible_distribution_release }} main
182 - name: install nodejs
188 when: ansible_distribution == 'Ubuntu'
190 - name: Check nodejs and npm versions
192 - name: 'Check nodejs version'
193 command: node --version
194 - name: 'Check npm version'
195 command: npm --version
196 when: ansible_distribution == 'Ubuntu'
198 - name: Install npm build tools
200 name: build-essential
204 when: ansible_distribution == 'Ubuntu'
206 - name: npm self-update
207 command: npm install npm@{{ npm_version }} -g
209 when: ansible_distribution == 'Ubuntu'
211 - name: npm install n module
212 command: npm install n -g
214 when: ansible_distribution == 'Ubuntu'
216 - name: Upgrade latest stable node version
217 command: n stable | PATH="$PATH"
219 when: ansible_distribution == 'Ubuntu'
221 - name: Add Google Chrome key
223 url: https://dl-ssl.google.com/linux/linux_signing_key.pub
226 when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu'
228 - name: Add Google Chrome repo
229 copy: content="deb http://dl.google.com/linux/chrome/deb/ stable main" dest={{apt_file}} owner=root group=root mode=644
231 when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu'
233 - name: Update apt cache
234 apt: update_cache=yes
236 when: ansible_distribution == 'Ubuntu'
238 - name: Install Google Chrome
240 name: google-chrome-stable
243 when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu'
245 - name: Install Erlang dependency packages
251 when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu'
253 - name: Install Erlang dependency package libwxgtk3 for 18.04
258 when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu' and ansible_distribution_version == '18.04'
260 - name: Install Erlang dependency package libwxgtk3 for 20.04
263 - libwxgtk3.0-gtk3-0v5
265 when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu' and ansible_distribution_version == '20.04'
267 - name: Download and install libssl Ubuntu 20.04
269 deb: http://security.ubuntu.com/ubuntu/pool/main/o/openssl1.0/libssl1.0.0_1.0.2n-1ubuntu5.11_amd64.deb
271 when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu' and ansible_distribution_version == '20.04'
273 - name: Install Erlang
275 deb: https://packages.erlang-solutions.com/erlang/debian/pool/esl-erlang_24.1-1~ubuntu~trusty_amd64.deb
277 when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu'
279 - name: 'Download latest rebar3 bin'
280 command: curl -o /usr/bin/rebar3 -L "https://s3.amazonaws.com/rebar3/rebar3"
282 when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu'
285 path: /usr/bin/rebar3
288 when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu'
290 - name: Download geckodriver
292 src: https://github.com/mozilla/geckodriver/releases/download/v0.18.0/geckodriver-v0.18.0-linux64.tar.gz
297 when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu'
299 - name: Download Firefox version 55.0.3
301 src: https://download-installer.cdn.mozilla.net/pub/firefox/releases/55.0.3/linux-x86_64/en-US/firefox-55.0.3.tar.bz2
306 when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu'
308 - name: Create symbolic link to firefox bin
310 src: "/opt/firefox/firefox"
311 dest: "/usr/bin/firefox"
314 when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu'
316 - name: Install jinja2
321 when: ansible_architecture == 'x86_64'