minecraft/server/tasks/main.yaml
changeset 239 c3e3169399a8
parent 178 0f99f298361d
equal deleted inserted replaced
238:bdbc88cb5078 239:c3e3169399a8
     4   become: yes
     4   become: yes
     5   user: name="{{minecraft_user}}" home="{{minecraft_parent_dir}}/minecraft" shell="/bin/false" system="yes"
     5   user: name="{{minecraft_user}}" home="{{minecraft_parent_dir}}/minecraft" shell="/bin/false" system="yes"
     6 
     6 
     7 - name: install java
     7 - name: install java
     8   become: yes
     8   become: yes
     9   apt: name="openjdk-17-jre-headless"
     9   apt: name="openjdk-21-jre-headless"
    10 
    10 
    11 - name: create minecraft dir
    11 - name: create minecraft dir
    12   become: yes
    12   become: yes
    13   file:
    13   file:
    14     path: "{{minecraft_dir}}"
    14     path: "{{minecraft_dir}}"