From b1f75519adf7d5c94ab6a1455a4717451c701e6e Mon Sep 17 00:00:00 2001 From: Salt Date: Fri, 5 Jun 2020 08:04:11 -0500 Subject: [PATCH] Add terraria servers --- gameservers.yml | 8 ++++++++ roles/terraria/defaults/main.yml | 2 +- roles/terraria/tasks/main.yml | 4 ++-- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/gameservers.yml b/gameservers.yml index 74b45a2..2951314 100644 --- a/gameservers.yml +++ b/gameservers.yml @@ -23,3 +23,11 @@ mcgamemode: 1 mcleveltype: "flat" tags: [ gameserver, minecraft ] + - role: terraria + vars: + terraria_name: "main" + terraria_password: "dicks" + terraria_motd: "New major release edition" + terraria_port: 7777 + terraria_difficulty: 2 + tags: [ gameserver, terraria ] diff --git a/roles/terraria/defaults/main.yml b/roles/terraria/defaults/main.yml index 9d56c77..6444cc3 100644 --- a/roles/terraria/defaults/main.yml +++ b/roles/terraria/defaults/main.yml @@ -4,4 +4,4 @@ terraria_port: 7777 terraria_root: "/var/terraria" terraria_worldname: "World" terraria_worldsize: 3 -terraria_zip: "https://terraria.org/system/dedicated_servers/archives/000/000/038/original/terraria-server-1404.zip" +terraria_zip: "https://terraria.org/system/dedicated_servers/archives/000/000/039/original/terraria-server-1405.zip" diff --git a/roles/terraria/tasks/main.yml b/roles/terraria/tasks/main.yml index 41f4178..a75374e 100644 --- a/roles/terraria/tasks/main.yml +++ b/roles/terraria/tasks/main.yml @@ -54,7 +54,7 @@ remote_src: yes dest: "{{ terraria_root }}/{{ terraria_name }}" - name: Move zip contents - shell: mv "{{ terraria_root }}/{{ terraria_name }}/1401/Linux/"* "{{ terraria_root }}/{{ terraria_name }}" + shell: mv "{{ terraria_root }}/{{ terraria_name }}/1405/Linux/"* "{{ terraria_root }}/{{ terraria_name }}" - name: Mark executable file: path: "{{ terraria_root }}/{{ terraria_name }}/TerrariaServer.bin.x86_64" @@ -65,7 +65,7 @@ state: absent loop: - "{{ terraria_root }}/{{ terraria_name }}/pack.zip" - - "{{ terraria_root }}/{{ terraria_name }}/1404" + - "{{ terraria_root }}/{{ terraria_name }}/1405" - name: Create worlds directory file: path: "{{ terraria_root }}/{{ terraria_name }}/worlds"