minecraft/server/tasks/main.yaml
changeset 177 11f52d70bca4
parent 174 431c6d5e5dd4
child 178 0f99f298361d
equal deleted inserted replaced
176:2d705e63f6cb 177:11f52d70bca4
     2 
     2 
     3 - name: add minecraft user
     3 - name: add minecraft user
     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 adoptopenjdk
     7 - name: install adoptium java
     8   include_tasks: adoptopenjdk.yaml
     8   become: yes
       
     9   unarchive:
       
    10     remote_src: yes
       
    11     src: "{{minecraft_java_url}}"
       
    12     dest: "/opt/"
       
    13     creates: "/opt/jdk-{{minecraft_java_version}}+{{minecraft_java_build}}/"
       
    14     owner: "root"
       
    15     group: "root"
       
    16   notify: restart minecraft
     9 
    17 
    10 - name: create minecraft dir
    18 - name: create minecraft dir
    11   become: yes
    19   become: yes
    12   file:
    20   file:
    13     path: "{{minecraft_dir}}"
    21     path: "{{minecraft_dir}}"