diff options
Diffstat (limited to 'roles/minecraft/tasks')
-rw-r--r-- | roles/minecraft/tasks/main.yml | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/roles/minecraft/tasks/main.yml b/roles/minecraft/tasks/main.yml index 657fb60..d78aa6e 100644 --- a/roles/minecraft/tasks/main.yml +++ b/roles/minecraft/tasks/main.yml @@ -12,6 +12,7 @@ user: name: "{{ minecraft_user }}" group: "{{ minecraft_group }}" + system: true - name: create minecraft directory file: @@ -21,15 +22,12 @@ mode: 0700 state: directory -- name: install java package - package: - name: "{{ packages[os_distribution].java }}" - - name: download minecraft server get_url: url: "{{ minecraft_url }}" dest: "{{ minecraft_dir }}/{{ minecraft_bin }}" owner: "{{ minecraft_user }}" + mode: 0644 - name: enable eula lineinfile: @@ -45,7 +43,8 @@ include_role: name=rc vars: rc_cmd: java - rc_args: "-jar -Xms{{ minecraft_ram }} -Xmx{{ minecraft_ram }} -XX:+UseG1GC -jar server.jar nogui" + rc_args: "-Xms{{ minecraft_ram }} -Xmx{{ minecraft_ram }} -XX:+UseG1GC -jar server.jar nogui" rc_user: "{{ minecraft_user }}:{{ minecraft_group }}" rc_dir: "{{ minecraft_dir }}" rc_name: minecraft + rc_strictpexp: true |