152
|
1 |
--- |
|
2 |
|
|
3 |
- name: configure apt proxy bypass for https |
|
4 |
become: yes |
|
5 |
copy: src="03adoptopenjdk-direct" dest="/etc/apt/apt.conf.d/03adoptopenjdk-direct" |
|
6 |
|
|
7 |
- name: add adoptopenjdk apt key |
|
8 |
become: yes |
|
9 |
apt_key: url="https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public/" |
|
10 |
|
|
11 |
- name: add adoptopenjdk apt repo |
|
12 |
become: yes |
|
13 |
apt_repository: repo="deb https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/ buster main" |
|
14 |
|
|
15 |
- name: update apt package cache |
|
16 |
become: yes |
|
17 |
apt: upgrade="dist" autoremove="yes" autoclean="yes" update_cache="yes" cache_valid_time="3600" |
|
18 |
|
|
19 |
- name: install adoptopenjdk hotspot jre 16 |
|
20 |
become: yes |
|
21 |
apt: name="adoptopenjdk-16-hotspot-jre" |