Add and sadly hardcode our terraria servers

This commit is contained in:
Salt 2020-05-16 10:25:06 -05:00
parent bbc1093d5d
commit d53c5bc12c
3 changed files with 40 additions and 4 deletions

41
ec2.yml
View File

@ -88,13 +88,48 @@
roles: roles:
- role: terraria - role: terraria
vars: vars:
terraria_name: "vanilla1" terraria_name: "1401-main"
terraria_zip: "https://terraria.org/server/terraria-server-1344.zip"
terraria_password: "dicks" terraria_password: "dicks"
terraria_worldsize: 3 terraria_worldsize: 3
terraria_motd: "New major release edition" terraria_motd: "New major release edition"
terraria_worldname: "Blitzballs" terraria_worldname: "The Home Base"
terraria_port: 7777 terraria_port: 7777
terraria_difficulty: 0
- role: terraria
vars:
terraria_name: "1401-farm-normal1"
terraria_password: "dicks"
terraria_worldsize: 3
terraria_motd: "New major release edition"
terraria_worldname: "Farman - Normal 1"
terraria_port: 7778
terraria_difficulty: 0
- role: terraria
vars:
terraria_name: "1401-farm-normal2"
terraria_password: "dicks"
terraria_worldsize: 3
terraria_motd: "New major release edition"
terraria_worldname: "Farman - Normal 2"
terraria_port: 7779
terraria_difficulty: 0
- role: terraria
vars:
terraria_name: "1401-farm-expert1"
terraria_password: "dicks"
terraria_worldsize: 3
terraria_motd: "New major release edition"
terraria_worldname: "Farman - Expert 1"
terraria_port: 7780
terraria_difficulty: 1
- role: terraria
vars:
terraria_name: "1401-farm-expert2"
terraria_password: "dicks"
terraria_worldsize: 3
terraria_motd: "New major release edition"
terraria_worldname: "Farman - Expert 2"
terraria_port: 7781
terraria_difficulty: 1 terraria_difficulty: 1
- hosts: tag_minecraft_ultreload - hosts: tag_minecraft_ultreload
roles: roles:

View File

@ -4,3 +4,4 @@ terraria_port: 7777
terraria_root: "/var/terraria" terraria_root: "/var/terraria"
terraria_worldname: "World" terraria_worldname: "World"
terraria_worldsize: 3 terraria_worldsize: 3
terraria_zip: "https://terraria.org/system/dedicated_servers/archives/000/000/033/original/terraria-server-1401.zip"

View File

@ -54,7 +54,7 @@
remote_src: yes remote_src: yes
dest: "{{ terraria_root }}/{{ terraria_name }}" dest: "{{ terraria_root }}/{{ terraria_name }}"
- name: Move zip contents - name: Move zip contents
shell: mv "{{ terraria_root }}/{{ terraria_name }}/Dedicated Server/Linux/"* "{{ terraria_root }}/{{ terraria_name }}" shell: mv "{{ terraria_root }}/{{ terraria_name }}/1401/Linux/"* "{{ terraria_root }}/{{ terraria_name }}"
- name: Mark executable - name: Mark executable
file: file:
path: "{{ terraria_root }}/{{ terraria_name }}/TerrariaServer.bin.x86_64" path: "{{ terraria_root }}/{{ terraria_name }}/TerrariaServer.bin.x86_64"