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