Jessica Wagantall | 564913e | 2018-03-19 13:41:33 -0700 | [diff] [blame] | 1 | --- |
| 2 | - import_playbook: ../common-packer/provision/docker.yaml |
| 3 | |
| 4 | - hosts: all |
| 5 | become_user: root |
| 6 | become_method: sudo |
Jessica Wagantall | 0cd3700 | 2018-03-27 16:14:46 -0700 | [diff] [blame] | 7 | vars: |
Jessica Wagantall | 5db567b | 2018-08-16 20:26:42 -0700 | [diff] [blame] | 8 | apt_file: /etc/apt/sources.list.d/google-chrome.list |
Eric Ball | 8d6ce3f | 2022-07-06 13:45:47 -0700 | [diff] [blame] | 9 | docker_compose_version: 1.29.2 |
Jessica Wagantall | 0cd3700 | 2018-03-27 16:14:46 -0700 | [diff] [blame] | 10 | glide_checksum: sha256:c403933503ea40308ecfadcff581ff0dc3190c57958808bb9eed016f13f6f32c |
| 11 | glide_version: v0.13.1 |
Jessica Wagantall | 0cd3700 | 2018-03-27 16:14:46 -0700 | [diff] [blame] | 12 | golang_version: 1.9.1 |
Jessica Wagantall | 9b41414 | 2023-04-17 18:43:01 -0700 | [diff] [blame] | 13 | npm_version: "9.6.4" |
Jessica Wagantall | 564913e | 2018-03-19 13:41:33 -0700 | [diff] [blame] | 14 | |
Jessica Wagantall | 0cd3700 | 2018-03-27 16:14:46 -0700 | [diff] [blame] | 15 | tasks: |
Martin Klozik | 7b68421 | 2019-03-27 13:55:59 +0100 | [diff] [blame] | 16 | - name: "Checking for x86_64" |
| 17 | set_fact: |
| 18 | host_arch: "amd64" |
| 19 | golang_checksum: sha256:07d81c6b6b4c2dcf1b5ef7c27aaebd3691cdb40548500941f92b221147c5d9c7 |
| 20 | when: "'x86_64' in ansible_architecture" |
| 21 | |
| 22 | - name: "Checking for aarch64" |
| 23 | set_fact: |
| 24 | host_arch: "arm64" |
| 25 | golang_checksum: sha256:d31ecae36efea5197af271ccce86ccc2baf10d2e04f20d0fb75556ecf0614dad |
| 26 | when: "'aarch64' in ansible_architecture" |
| 27 | |
Andrew Grimberg | a6b750c | 2023-05-03 08:47:44 -0700 | [diff] [blame] | 28 | - name: "Install Docker Compose {{docker_compose_version}}" |
| 29 | # yamllint disable-line rule:line-length |
Jessica Wagantall | 096164e | 2018-08-15 10:07:47 -0700 | [diff] [blame] | 30 | command: curl -o /usr/local/bin/docker-compose -L "https://github.com/docker/compose/releases/download/{{docker_compose_version}}/docker-compose-Linux-x86_64" |
Jessica Wagantall | 564913e | 2018-03-19 13:41:33 -0700 | [diff] [blame] | 31 | become: true |
Jessica Wagantall | 0cd3700 | 2018-03-27 16:14:46 -0700 | [diff] [blame] | 32 | |
Jessica Wagantall | 5826a6a | 2018-08-11 23:38:07 -0700 | [diff] [blame] | 33 | - file: |
| 34 | path: /usr/local/bin/docker-compose |
| 35 | mode: "+x" |
Jessica Wagantall | dbadc48 | 2018-08-13 14:13:57 -0700 | [diff] [blame] | 36 | become: true |
Jessica Wagantall | 5826a6a | 2018-08-11 23:38:07 -0700 | [diff] [blame] | 37 | |
Andrew Grimberg | a6b750c | 2023-05-03 08:47:44 -0700 | [diff] [blame] | 38 | - name: "Install GoLang {{golang_version}}" |
Jessica Wagantall | 0cd3700 | 2018-03-27 16:14:46 -0700 | [diff] [blame] | 39 | block: |
Andrew Grimberg | a6b750c | 2023-05-03 08:47:44 -0700 | [diff] [blame] | 40 | - name: "Fetch golang {{golang_version}} to /tmp/go{{golang_version}}.linux-{{host_arch}}.tar.gz" |
Jessica Wagantall | 0cd3700 | 2018-03-27 16:14:46 -0700 | [diff] [blame] | 41 | get_url: |
Andrew Grimberg | a6b750c | 2023-05-03 08:47:44 -0700 | [diff] [blame] | 42 | url: "https://storage.googleapis.com/golang/go{{golang_version}}.linux-{{host_arch}}.tar.gz" |
| 43 | dest: "/tmp/go{{golang_version}}.linux-{{host_arch}}.tar.gz" |
| 44 | checksum: "{{golang_checksum}}" |
| 45 | - name: "Install golang {{golang_version}} to /usr/local" |
Jessica Wagantall | 0cd3700 | 2018-03-27 16:14:46 -0700 | [diff] [blame] | 46 | unarchive: |
Andrew Grimberg | a6b750c | 2023-05-03 08:47:44 -0700 | [diff] [blame] | 47 | src: "/tmp/go{{golang_version}}.linux-{{host_arch}}.tar.gz" |
Jessica Wagantall | 0cd3700 | 2018-03-27 16:14:46 -0700 | [diff] [blame] | 48 | dest: /usr/local |
| 49 | remote_src: true |
| 50 | become: true |
Jessica Wagantall | b4acd42 | 2018-09-05 13:38:55 -0700 | [diff] [blame] | 51 | - name: Create symbolic link to go bin |
| 52 | file: |
| 53 | src: "/usr/local/go/bin/go" |
| 54 | dest: "/usr/bin/go" |
| 55 | state: link |
Jessica Wagantall | 0cd3700 | 2018-03-27 16:14:46 -0700 | [diff] [blame] | 56 | become: true |
Jessica Wagantall | 19ce2f5 | 2018-08-08 12:25:08 -0700 | [diff] [blame] | 57 | |
| 58 | - name: Install libxml2-utils |
| 59 | apt: |
| 60 | name: libxml2-utils |
| 61 | state: present |
| 62 | become: true |
Jessica Wagantall | c2bf19b | 2019-05-06 18:04:28 -0700 | [diff] [blame] | 63 | when: ansible_distribution == 'Ubuntu' |
Jessica Wagantall | 7f93ce0 | 2018-08-09 19:41:49 -0700 | [diff] [blame] | 64 | |
Jessica Wagantall | 42bf827 | 2018-08-09 22:02:42 -0700 | [diff] [blame] | 65 | - apt_repository: |
efiacor | 27f55b7 | 2019-11-27 20:02:52 +0000 | [diff] [blame] | 66 | repo: ppa:deadsnakes/ppa |
| 67 | state: present |
| 68 | become: true |
| 69 | when: ansible_distribution == 'Ubuntu' |
| 70 | |
Jessica Wagantall | 42bf827 | 2018-08-09 22:02:42 -0700 | [diff] [blame] | 71 | - name: Update and upgrade apt packages |
| 72 | apt: |
Andrew Grimberg | a6b750c | 2023-05-03 08:47:44 -0700 | [diff] [blame] | 73 | upgrade: "yes" |
| 74 | update_cache: true |
Jessica Wagantall | 42bf827 | 2018-08-09 22:02:42 -0700 | [diff] [blame] | 75 | become: true |
Jessica Wagantall | c2bf19b | 2019-05-06 18:04:28 -0700 | [diff] [blame] | 76 | when: ansible_distribution == 'Ubuntu' |
Jessica Wagantall | 42bf827 | 2018-08-09 22:02:42 -0700 | [diff] [blame] | 77 | |
| 78 | - name: Install Python 3.6 and packages |
| 79 | apt: |
| 80 | name: |
| 81 | - python3.6 |
| 82 | - python3.6-dev |
Milin | 3fabeee | 2019-09-05 14:52:31 -0500 | [diff] [blame] | 83 | - python3.6-tk |
Jessica Wagantall | 42bf827 | 2018-08-09 22:02:42 -0700 | [diff] [blame] | 84 | - libssl-dev |
| 85 | - libmysqlclient-dev |
| 86 | - gcc |
Jessica Wagantall | 175d5ef | 2020-02-20 10:23:58 -0800 | [diff] [blame] | 87 | - python3-venv |
Jessica Wagantall | 42bf827 | 2018-08-09 22:02:42 -0700 | [diff] [blame] | 88 | become: true |
Jessica Wagantall | c2bf19b | 2019-05-06 18:04:28 -0700 | [diff] [blame] | 89 | when: ansible_distribution == 'Ubuntu' |
Jessica Wagantall | 3fc37fe | 2018-08-10 00:16:16 -0700 | [diff] [blame] | 90 | |
efiacor | 27f55b7 | 2019-11-27 20:02:52 +0000 | [diff] [blame] | 91 | - name: Install Python 3.7 |
| 92 | apt: |
| 93 | name: |
| 94 | - python3.7 |
| 95 | - python3.7-dev |
| 96 | - python3.7-tk |
| 97 | become: true |
| 98 | when: ansible_distribution == 'Ubuntu' |
| 99 | |
vv770d | 4f9ba44 | 2020-07-17 20:46:45 +0000 | [diff] [blame] | 100 | - name: Install Python 3.8 |
| 101 | apt: |
| 102 | name: |
| 103 | - python3.8 |
| 104 | - python3.8-dev |
| 105 | - python3.8-tk |
| 106 | become: true |
| 107 | when: ansible_distribution == 'Ubuntu' |
| 108 | |
Michal Jagiello | 9f7857e | 2021-01-22 22:24:57 +0000 | [diff] [blame] | 109 | - name: Install Python 3.9 |
| 110 | apt: |
| 111 | name: |
| 112 | - python3.9 |
| 113 | - python3.9-dev |
| 114 | - python3.9-tk |
Bengt Thuree | 14473ea | 2021-03-16 13:29:06 +1100 | [diff] [blame] | 115 | - python3.9-distutils |
Michal Jagiello | 9f7857e | 2021-01-22 22:24:57 +0000 | [diff] [blame] | 116 | become: true |
| 117 | when: ansible_distribution == 'Ubuntu' |
| 118 | |
Jessica Wagantall | aea673b | 2022-09-06 12:28:28 -0700 | [diff] [blame] | 119 | - name: Install supporting packages (Ubuntu 18.04) |
Jessica Wagantall | 3fc37fe | 2018-08-10 00:16:16 -0700 | [diff] [blame] | 120 | apt: |
| 121 | name: |
| 122 | - unzip |
| 123 | - xz-utils |
| 124 | - libxml-xpath-perl |
| 125 | - wget |
| 126 | - make |
Jessica Wagantall | 3fc37fe | 2018-08-10 00:16:16 -0700 | [diff] [blame] | 127 | - sshuttle |
| 128 | - netcat |
| 129 | - libssl-dev |
| 130 | - libffi-dev |
Jessica Wagantall | 3fc37fe | 2018-08-10 00:16:16 -0700 | [diff] [blame] | 131 | - xmlstarlet |
| 132 | - xvfb |
| 133 | - crudini |
| 134 | - maven |
| 135 | - python-ncclient |
Andrew Grimberg | a6b750c | 2023-05-03 08:47:44 -0700 | [diff] [blame] | 136 | update_cache: true |
Jessica Wagantall | aea673b | 2022-09-06 12:28:28 -0700 | [diff] [blame] | 137 | state: fixed |
| 138 | become: true |
| 139 | when: ansible_distribution == 'Ubuntu' and ansible_distribution_version == '18.04' |
| 140 | |
| 141 | - name: Install supporting packages (Ubuntu 20.04) |
| 142 | apt: |
| 143 | name: |
| 144 | - unzip |
| 145 | - xz-utils |
| 146 | - libxml-xpath-perl |
| 147 | - wget |
| 148 | - make |
| 149 | - sshuttle |
| 150 | - netcat |
| 151 | - libssl-dev |
| 152 | - libffi-dev |
Jessica Wagantall | 2520197 | 2020-02-19 12:00:04 -0800 | [diff] [blame] | 153 | - xmlstarlet |
| 154 | - xvfb |
| 155 | - crudini |
| 156 | - maven |
Bengt Thuree | 1610dcb | 2022-09-08 19:26:17 +1000 | [diff] [blame] | 157 | - python3-ncclient |
Andrew Grimberg | a6b750c | 2023-05-03 08:47:44 -0700 | [diff] [blame] | 158 | update_cache: true |
Jessica Wagantall | 307720b | 2020-03-12 20:56:49 -0700 | [diff] [blame] | 159 | state: fixed |
| 160 | become: true |
Jessica Wagantall | aea673b | 2022-09-06 12:28:28 -0700 | [diff] [blame] | 161 | when: ansible_distribution == 'Ubuntu' and ansible_distribution_version == '20.04' |
Jessica Wagantall | 307720b | 2020-03-12 20:56:49 -0700 | [diff] [blame] | 162 | |
Jessica Wagantall | f7d0136 | 2023-04-12 16:11:10 -0700 | [diff] [blame] | 163 | - name: Install nodejs |
Jessica Wagantall | 47761bf | 2023-04-12 11:43:26 -0700 | [diff] [blame] | 164 | block: |
Jessica Wagantall | f7d0136 | 2023-04-12 16:11:10 -0700 | [diff] [blame] | 165 | - name: install nodejs prerequisites |
| 166 | apt: |
| 167 | name: |
| 168 | - apt-transport-https |
| 169 | - g++ |
Andrew Grimberg | a6b750c | 2023-05-03 08:47:44 -0700 | [diff] [blame] | 170 | update_cache: true |
Jessica Wagantall | f7d0136 | 2023-04-12 16:11:10 -0700 | [diff] [blame] | 171 | state: present |
| 172 | become: true |
| 173 | - name: add nodejs apt key |
| 174 | apt_key: |
| 175 | url: https://deb.nodesource.com/gpgkey/nodesource.gpg.key |
| 176 | state: present |
Jessica Wagantall | b8760a0 | 2023-04-13 18:24:09 -0700 | [diff] [blame] | 177 | become: true |
Jessica Wagantall | f7d0136 | 2023-04-12 16:11:10 -0700 | [diff] [blame] | 178 | - name: add nodejs repository |
| 179 | apt_repository: |
| 180 | repo: deb https://deb.nodesource.com/node_19.x {{ ansible_distribution_release }} main |
Jessica Wagantall | e554b57 | 2023-04-14 09:54:50 -0700 | [diff] [blame] | 181 | state: present |
Andrew Grimberg | a6b750c | 2023-05-03 08:47:44 -0700 | [diff] [blame] | 182 | update_cache: true |
Jessica Wagantall | b8760a0 | 2023-04-13 18:24:09 -0700 | [diff] [blame] | 183 | become: true |
Jessica Wagantall | f7d0136 | 2023-04-12 16:11:10 -0700 | [diff] [blame] | 184 | - name: install nodejs |
| 185 | apt: |
| 186 | name: |
| 187 | - nodejs |
| 188 | state: present |
| 189 | become: true |
Jessica Wagantall | 306347b | 2023-04-17 09:23:15 -0700 | [diff] [blame] | 190 | when: ansible_distribution == 'Ubuntu' |
Jessica Wagantall | f7d0136 | 2023-04-12 16:11:10 -0700 | [diff] [blame] | 191 | |
| 192 | - name: Check nodejs and npm versions |
| 193 | block: |
Andrew Grimberg | a6b750c | 2023-05-03 08:47:44 -0700 | [diff] [blame] | 194 | - name: "Check nodejs version" |
Jessica Wagantall | 47761bf | 2023-04-12 11:43:26 -0700 | [diff] [blame] | 195 | command: node --version |
Andrew Grimberg | a6b750c | 2023-05-03 08:47:44 -0700 | [diff] [blame] | 196 | - name: "Check npm version" |
Jessica Wagantall | 47761bf | 2023-04-12 11:43:26 -0700 | [diff] [blame] | 197 | command: npm --version |
| 198 | when: ansible_distribution == 'Ubuntu' |
| 199 | |
| 200 | - name: Install npm build tools |
| 201 | apt: |
| 202 | name: build-essential |
Andrew Grimberg | a6b750c | 2023-05-03 08:47:44 -0700 | [diff] [blame] | 203 | update_cache: true |
Jessica Wagantall | 47761bf | 2023-04-12 11:43:26 -0700 | [diff] [blame] | 204 | state: fixed |
| 205 | become: true |
Jessica Wagantall | c2bf19b | 2019-05-06 18:04:28 -0700 | [diff] [blame] | 206 | when: ansible_distribution == 'Ubuntu' |
Jessica Wagantall | 5db567b | 2018-08-16 20:26:42 -0700 | [diff] [blame] | 207 | |
Jessica Wagantall | ca8c524 | 2021-06-21 19:55:40 -0700 | [diff] [blame] | 208 | - name: npm self-update |
| 209 | command: npm install npm@{{ npm_version }} -g |
| 210 | become: true |
Jessica Wagantall | 1c371f0 | 2022-09-06 18:40:47 -0700 | [diff] [blame] | 211 | when: ansible_distribution == 'Ubuntu' |
Jessica Wagantall | ca8c524 | 2021-06-21 19:55:40 -0700 | [diff] [blame] | 212 | |
| 213 | - name: npm install n module |
| 214 | command: npm install n -g |
| 215 | become: true |
Jessica Wagantall | 1c371f0 | 2022-09-06 18:40:47 -0700 | [diff] [blame] | 216 | when: ansible_distribution == 'Ubuntu' |
Jessica Wagantall | ca8c524 | 2021-06-21 19:55:40 -0700 | [diff] [blame] | 217 | |
| 218 | - name: Upgrade latest stable node version |
| 219 | command: n stable | PATH="$PATH" |
| 220 | become: true |
Jessica Wagantall | 1c371f0 | 2022-09-06 18:40:47 -0700 | [diff] [blame] | 221 | when: ansible_distribution == 'Ubuntu' |
Jessica Wagantall | ca8c524 | 2021-06-21 19:55:40 -0700 | [diff] [blame] | 222 | |
Jessica Wagantall | 5db567b | 2018-08-16 20:26:42 -0700 | [diff] [blame] | 223 | - name: Add Google Chrome key |
| 224 | apt_key: |
| 225 | url: https://dl-ssl.google.com/linux/linux_signing_key.pub |
| 226 | state: present |
| 227 | become: true |
Jessica Wagantall | c2bf19b | 2019-05-06 18:04:28 -0700 | [diff] [blame] | 228 | when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu' |
Jessica Wagantall | 5db567b | 2018-08-16 20:26:42 -0700 | [diff] [blame] | 229 | |
| 230 | - name: Add Google Chrome repo |
Andrew Grimberg | a6b750c | 2023-05-03 08:47:44 -0700 | [diff] [blame] | 231 | # yamllint disable-line rule:line-length |
Jessica Wagantall | 5db567b | 2018-08-16 20:26:42 -0700 | [diff] [blame] | 232 | copy: content="deb http://dl.google.com/linux/chrome/deb/ stable main" dest={{apt_file}} owner=root group=root mode=644 |
| 233 | become: true |
Jessica Wagantall | c2bf19b | 2019-05-06 18:04:28 -0700 | [diff] [blame] | 234 | when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu' |
Jessica Wagantall | 5db567b | 2018-08-16 20:26:42 -0700 | [diff] [blame] | 235 | |
| 236 | - name: Update apt cache |
| 237 | apt: update_cache=yes |
| 238 | become: true |
Jessica Wagantall | c2bf19b | 2019-05-06 18:04:28 -0700 | [diff] [blame] | 239 | when: ansible_distribution == 'Ubuntu' |
Jessica Wagantall | 5db567b | 2018-08-16 20:26:42 -0700 | [diff] [blame] | 240 | |
| 241 | - name: Install Google Chrome |
| 242 | apt: |
| 243 | name: google-chrome-stable |
| 244 | state: present |
| 245 | become: true |
Jessica Wagantall | c2bf19b | 2019-05-06 18:04:28 -0700 | [diff] [blame] | 246 | when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu' |
Jessica Wagantall | ba4a03d | 2018-08-21 12:11:32 -0700 | [diff] [blame] | 247 | |
Jessica Wagantall | 6e96b2e | 2018-08-21 14:38:37 -0700 | [diff] [blame] | 248 | - name: Install Erlang dependency packages |
| 249 | apt: |
| 250 | name: |
Jessica Wagantall | 6e96b2e | 2018-08-21 14:38:37 -0700 | [diff] [blame] | 251 | - libsctp1 |
| 252 | - libwxbase3.0-0v5 |
| 253 | become: true |
Jessica Wagantall | c2bf19b | 2019-05-06 18:04:28 -0700 | [diff] [blame] | 254 | when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu' |
Jessica Wagantall | 6e96b2e | 2018-08-21 14:38:37 -0700 | [diff] [blame] | 255 | |
Bengt Thuree | faeb727 | 2022-09-08 14:58:31 +1000 | [diff] [blame] | 256 | - name: Install Erlang dependency package libwxgtk3 for 18.04 |
| 257 | apt: |
| 258 | name: |
| 259 | - libwxgtk3.0-0v5 |
| 260 | become: true |
Andrew Grimberg | a6b750c | 2023-05-03 08:47:44 -0700 | [diff] [blame] | 261 | # yamllint disable-line rule:line-length |
Bengt Thuree | faeb727 | 2022-09-08 14:58:31 +1000 | [diff] [blame] | 262 | when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu' and ansible_distribution_version == '18.04' |
| 263 | |
| 264 | - name: Install Erlang dependency package libwxgtk3 for 20.04 |
| 265 | apt: |
| 266 | name: |
| 267 | - libwxgtk3.0-gtk3-0v5 |
| 268 | become: true |
Andrew Grimberg | a6b750c | 2023-05-03 08:47:44 -0700 | [diff] [blame] | 269 | # yamllint disable-line rule:line-length |
Bengt Thuree | faeb727 | 2022-09-08 14:58:31 +1000 | [diff] [blame] | 270 | when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu' and ansible_distribution_version == '20.04' |
| 271 | |
Jessica Wagantall | ed075ef | 2022-09-09 10:44:44 -0700 | [diff] [blame] | 272 | - name: Download and install libssl Ubuntu 20.04 |
| 273 | apt: |
Jessica Wagantall | 6d4f8ac | 2023-04-14 11:47:09 -0700 | [diff] [blame] | 274 | deb: http://security.ubuntu.com/ubuntu/pool/main/o/openssl1.0/libssl1.0.0_1.0.2n-1ubuntu5.11_amd64.deb |
Jessica Wagantall | ed075ef | 2022-09-09 10:44:44 -0700 | [diff] [blame] | 275 | become: true |
Andrew Grimberg | a6b750c | 2023-05-03 08:47:44 -0700 | [diff] [blame] | 276 | # yamllint disable-line rule:line-length |
Jessica Wagantall | ed075ef | 2022-09-09 10:44:44 -0700 | [diff] [blame] | 277 | when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu' and ansible_distribution_version == '20.04' |
| 278 | |
Jessica Wagantall | 6e96b2e | 2018-08-21 14:38:37 -0700 | [diff] [blame] | 279 | - name: Install Erlang |
| 280 | apt: |
Jessica Wagantall | 8773a10 | 2022-09-12 10:01:30 -0700 | [diff] [blame] | 281 | deb: https://packages.erlang-solutions.com/erlang/debian/pool/esl-erlang_24.1-1~ubuntu~trusty_amd64.deb |
Jessica Wagantall | 6e96b2e | 2018-08-21 14:38:37 -0700 | [diff] [blame] | 282 | become: true |
Jessica Wagantall | c2bf19b | 2019-05-06 18:04:28 -0700 | [diff] [blame] | 283 | when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu' |
Jessica Wagantall | 6e96b2e | 2018-08-21 14:38:37 -0700 | [diff] [blame] | 284 | |
Andrew Grimberg | a6b750c | 2023-05-03 08:47:44 -0700 | [diff] [blame] | 285 | - name: "Download latest rebar3 bin" |
Eric Ball | 8fa57d2 | 2022-07-11 09:07:36 -0700 | [diff] [blame] | 286 | command: curl -o /usr/bin/rebar3 -L "https://s3.amazonaws.com/rebar3/rebar3" |
Jessica Wagantall | 58744aa | 2018-08-21 17:48:03 -0700 | [diff] [blame] | 287 | become: true |
Jessica Wagantall | c2bf19b | 2019-05-06 18:04:28 -0700 | [diff] [blame] | 288 | when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu' |
Jessica Wagantall | ba4a03d | 2018-08-21 12:11:32 -0700 | [diff] [blame] | 289 | |
Eric Ball | 8fa57d2 | 2022-07-11 09:07:36 -0700 | [diff] [blame] | 290 | - file: |
| 291 | path: /usr/bin/rebar3 |
| 292 | mode: "+x" |
| 293 | become: true |
Jessica Wagantall | c2bf19b | 2019-05-06 18:04:28 -0700 | [diff] [blame] | 294 | when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu' |
Jessica Wagantall | 49f835a | 2018-08-23 15:08:54 -0700 | [diff] [blame] | 295 | |
| 296 | - name: Download geckodriver |
| 297 | unarchive: |
| 298 | src: https://github.com/mozilla/geckodriver/releases/download/v0.18.0/geckodriver-v0.18.0-linux64.tar.gz |
| 299 | dest: /usr/bin |
Jessica Wagantall | b4cf59a | 2018-08-24 12:17:49 -0700 | [diff] [blame] | 300 | mode: 0755 |
Andrew Grimberg | a6b750c | 2023-05-03 08:47:44 -0700 | [diff] [blame] | 301 | remote_src: true |
Jessica Wagantall | 49f835a | 2018-08-23 15:08:54 -0700 | [diff] [blame] | 302 | become: true |
Jessica Wagantall | c2bf19b | 2019-05-06 18:04:28 -0700 | [diff] [blame] | 303 | when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu' |
Jessica Wagantall | c944ef0 | 2018-08-30 17:53:11 -0700 | [diff] [blame] | 304 | |
| 305 | - name: Download Firefox version 55.0.3 |
| 306 | unarchive: |
Andrew Grimberg | a6b750c | 2023-05-03 08:47:44 -0700 | [diff] [blame] | 307 | # yamllint disable-line rule:line-length |
Jessica Wagantall | c944ef0 | 2018-08-30 17:53:11 -0700 | [diff] [blame] | 308 | src: https://download-installer.cdn.mozilla.net/pub/firefox/releases/55.0.3/linux-x86_64/en-US/firefox-55.0.3.tar.bz2 |
Jessica Wagantall | bbdb4d6 | 2018-09-24 18:21:48 -0700 | [diff] [blame] | 309 | dest: /opt |
Jessica Wagantall | c944ef0 | 2018-08-30 17:53:11 -0700 | [diff] [blame] | 310 | mode: 0755 |
Andrew Grimberg | a6b750c | 2023-05-03 08:47:44 -0700 | [diff] [blame] | 311 | remote_src: true |
Jessica Wagantall | c944ef0 | 2018-08-30 17:53:11 -0700 | [diff] [blame] | 312 | become: true |
Jessica Wagantall | c2bf19b | 2019-05-06 18:04:28 -0700 | [diff] [blame] | 313 | when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu' |
Jessica Wagantall | c944ef0 | 2018-08-30 17:53:11 -0700 | [diff] [blame] | 314 | |
| 315 | - name: Create symbolic link to firefox bin |
| 316 | file: |
Jessica Wagantall | bbdb4d6 | 2018-09-24 18:21:48 -0700 | [diff] [blame] | 317 | src: "/opt/firefox/firefox" |
Jessica Wagantall | c944ef0 | 2018-08-30 17:53:11 -0700 | [diff] [blame] | 318 | dest: "/usr/bin/firefox" |
| 319 | state: link |
| 320 | become: true |
Jessica Wagantall | c2bf19b | 2019-05-06 18:04:28 -0700 | [diff] [blame] | 321 | when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu' |
Vanessa Rene Valderrama | dc36327 | 2019-06-27 15:37:37 -0500 | [diff] [blame] | 322 | |
| 323 | - name: Install jinja2 |
| 324 | pip: |
| 325 | name: jinja2 |
| 326 | state: present |
| 327 | become: true |
| 328 | when: ansible_architecture == 'x86_64' |