minecraft/server/tasks/adoptopenjdk.yaml
changeset 156 ebd8a21a0e62
parent 152 740231770c7c
equal deleted inserted replaced
155:4d45841961e7 156:ebd8a21a0e62
       
     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"