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
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'
65 repo: ppa:deadsnakes/ppa
68 when: ansible_distribution == 'Ubuntu'
70 - name: Update and upgrade apt packages
75 when: ansible_distribution == 'Ubuntu'
77 - name: Install Python 3.6 and packages
88 when: ansible_distribution == 'Ubuntu'
90 - name: Install Python 3.7
97 when: ansible_distribution == 'Ubuntu'
99 - name: Install Python 3.8
106 when: ansible_distribution == 'Ubuntu'
108 - name: Install Python 3.9
114 - python3.9-distutils
116 when: ansible_distribution == 'Ubuntu'
118 - name: Install supporting packages (Ubuntu 18.04)
138 when: ansible_distribution == 'Ubuntu' and ansible_distribution_version == '18.04'
140 - name: Install supporting packages (Ubuntu 20.04)
160 when: ansible_distribution == 'Ubuntu' and ansible_distribution_version == '20.04'
162 - name: Install nodejs
164 - name: install nodejs prerequisites
167 - apt-transport-https
172 - name: add nodejs apt key
174 url: https://deb.nodesource.com/gpgkey/nodesource.gpg.key
177 - name: add nodejs repository
179 repo: deb https://deb.nodesource.com/node_19.x {{ ansible_distribution_release }} main
183 - name: install nodejs
189 when: ansible_distribution == 'Ubuntu'
191 - name: Check nodejs and npm versions
193 - name: 'Check nodejs version'
194 command: node --version
195 - name: 'Check npm version'
196 command: npm --version
197 when: ansible_distribution == 'Ubuntu'
199 - name: Install npm build tools
201 name: build-essential
205 when: ansible_distribution == 'Ubuntu'
207 - name: npm self-update
208 command: npm install npm@{{ npm_version }} -g
210 when: ansible_distribution == 'Ubuntu'
212 - name: npm install n module
213 command: npm install n -g
215 when: ansible_distribution == 'Ubuntu'
217 - name: Upgrade latest stable node version
218 command: n stable | PATH="$PATH"
220 when: ansible_distribution == 'Ubuntu'
222 - name: Add Google Chrome key
224 url: https://dl-ssl.google.com/linux/linux_signing_key.pub
227 when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu'
229 - name: Add Google Chrome repo
230 copy: content="deb http://dl.google.com/linux/chrome/deb/ stable main" dest={{apt_file}} owner=root group=root mode=644
232 when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu'
234 - name: Update apt cache
235 apt: update_cache=yes
237 when: ansible_distribution == 'Ubuntu'
239 - name: Install Google Chrome
241 name: google-chrome-stable
244 when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu'
246 - name: Install Erlang dependency packages
252 when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu'
254 - name: Install Erlang dependency package libwxgtk3 for 18.04
259 when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu' and ansible_distribution_version == '18.04'
261 - name: Install Erlang dependency package libwxgtk3 for 20.04
264 - libwxgtk3.0-gtk3-0v5
266 when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu' and ansible_distribution_version == '20.04'
268 - name: Download and install libssl Ubuntu 20.04
270 deb: http://security.ubuntu.com/ubuntu/pool/main/o/openssl1.0/libssl1.0.0_1.0.2n-1ubuntu5.11_amd64.deb
272 when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu' and ansible_distribution_version == '20.04'
274 - name: Install Erlang
276 deb: https://packages.erlang-solutions.com/erlang/debian/pool/esl-erlang_24.1-1~ubuntu~trusty_amd64.deb
278 when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu'
280 - name: 'Download latest rebar3 bin'
281 command: curl -o /usr/bin/rebar3 -L "https://s3.amazonaws.com/rebar3/rebar3"
283 when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu'
286 path: /usr/bin/rebar3
289 when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu'
291 - name: Download geckodriver
293 src: https://github.com/mozilla/geckodriver/releases/download/v0.18.0/geckodriver-v0.18.0-linux64.tar.gz
298 when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu'
300 - name: Download Firefox version 55.0.3
302 src: https://download-installer.cdn.mozilla.net/pub/firefox/releases/55.0.3/linux-x86_64/en-US/firefox-55.0.3.tar.bz2
307 when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu'
309 - name: Create symbolic link to firefox bin
311 src: "/opt/firefox/firefox"
312 dest: "/usr/bin/firefox"
315 when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu'
317 - name: Install jinja2
322 when: ansible_architecture == 'x86_64'