An ansible role to automate deployment of Terraria on linux hosts
Configures:
- a service user
- start scripts (executed in a screen session)
- save scripts (executed every 30 minutes)
- backups (rotated every 720 minutes by default)
- Linux target (this has been tested against Ubuntu 16.04 LTS)
- Ansible version 2.4.2.0 (others may work, but this version was used for testing)
You must define the version to deploy as this will obtained from the server file mirror.
terraria_version: 1353
Check out the Getting Started page for Terraria server-specific variables for a common use case (single server, single instance)
Documentation on all variables can be found in the wiki
Calling the role with minimum required terraria_version
and a few configured values, relying on defaults for everything else.
---
- hosts: servers
roles:
- role: terraria_server
terraria_version: 1353
world_name: "WorldOne"
server_port: 7777