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
70 repo: ppa:deadsnakes/ppa
73 when: ansible_distribution == 'Ubuntu'
75 - name: Update and upgrade apt packages
80 when: ansible_distribution == 'Ubuntu'
82 - name: Install Python 3.6 and packages
92 when: ansible_distribution == 'Ubuntu'
94 - name: Install Python 3.7
101 when: ansible_distribution == 'Ubuntu'
103 - name: Install base packages
117 when: ansible_distribution == 'Ubuntu'
119 - name: Install autorelease support packages
128 when: ansible_distribution == 'Ubuntu'
130 - name: Add Google Chrome key
132 url: https://dl-ssl.google.com/linux/linux_signing_key.pub
135 when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu'
137 - name: Add Google Chrome repo
138 copy: content="deb http://dl.google.com/linux/chrome/deb/ stable main" dest={{apt_file}} owner=root group=root mode=644
140 when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu'
142 - name: Update apt cache
143 apt: update_cache=yes
145 when: ansible_distribution == 'Ubuntu'
147 - name: Install Google Chrome
149 name: google-chrome-stable
152 when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu'
154 - name: Install Erlang dependency packages
161 when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu'
163 - name: Install Erlang
165 deb: https://packages.erlang-solutions.com/erlang/debian/pool/esl-erlang_19.3.6-1~ubuntu~trusty_amd64.deb
167 when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu'
171 repo: 'https://github.com/erlang/rebar3.git'
173 when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu'
175 - name: Bootstrap rebar3
179 when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu'
181 - name: Install rebar3 to bin
183 src: /tmp/rebar3/rebar3
184 dest: /usr/bin/rebar3
188 when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu'
190 - name: Remove unused rebar3 source
194 when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu'
196 - name: Download geckodriver
198 src: https://github.com/mozilla/geckodriver/releases/download/v0.18.0/geckodriver-v0.18.0-linux64.tar.gz
203 when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu'
205 - name: Download Firefox version 55.0.3
207 src: https://download-installer.cdn.mozilla.net/pub/firefox/releases/55.0.3/linux-x86_64/en-US/firefox-55.0.3.tar.bz2
212 when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu'
214 - name: Create symbolic link to firefox bin
216 src: "/opt/firefox/firefox"
217 dest: "/usr/bin/firefox"
220 when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu'
222 - name: Install jinja2
227 when: ansible_architecture == 'x86_64'