minecraft/tasks/adoptopenjdk.yaml
author Luke Hoersten <luke@hoersten.org>
Sat, 03 Jul 2021 11:16:17 -0500
changeset 155 4d45841961e7
parent 152 740231770c7c
permissions -rw-r--r--
Added ops template to main.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
152
740231770c7c Updated minecraft to 1.17.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     1
---
740231770c7c Updated minecraft to 1.17.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     2
740231770c7c Updated minecraft to 1.17.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     3
- name: configure apt proxy bypass for https
740231770c7c Updated minecraft to 1.17.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     4
  become: yes
740231770c7c Updated minecraft to 1.17.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     5
  copy: src="03adoptopenjdk-direct" dest="/etc/apt/apt.conf.d/03adoptopenjdk-direct"
740231770c7c Updated minecraft to 1.17.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     6
740231770c7c Updated minecraft to 1.17.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     7
- name: add adoptopenjdk apt key
740231770c7c Updated minecraft to 1.17.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     8
  become: yes
740231770c7c Updated minecraft to 1.17.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     9
  apt_key: url="https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public/"
740231770c7c Updated minecraft to 1.17.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    10
740231770c7c Updated minecraft to 1.17.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    11
- name: add adoptopenjdk apt repo
740231770c7c Updated minecraft to 1.17.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    12
  become: yes
740231770c7c Updated minecraft to 1.17.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    13
  apt_repository: repo="deb https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/ buster main"
740231770c7c Updated minecraft to 1.17.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    14
740231770c7c Updated minecraft to 1.17.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    15
- name: update apt package cache
740231770c7c Updated minecraft to 1.17.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    16
  become: yes
740231770c7c Updated minecraft to 1.17.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    17
  apt: upgrade="dist" autoremove="yes" autoclean="yes" update_cache="yes" cache_valid_time="3600"
740231770c7c Updated minecraft to 1.17.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    18
740231770c7c Updated minecraft to 1.17.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    19
- name: install adoptopenjdk hotspot jre 16
740231770c7c Updated minecraft to 1.17.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    20
  become: yes
740231770c7c Updated minecraft to 1.17.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    21
  apt: name="adoptopenjdk-16-hotspot-jre"