nautik1.teeworlds
Ansible-Teeworlds
This guide shows how to set up a Teeworlds server using Ansible.
Requirements
You need a Debian-based Linux system that uses systemd, ideally Ubuntu 20.04.
Tested on:
- Teeworlds version 0.7.5
- Ansible version 2.9.7
- Ubuntu 20.04 on Gandi Cloud
Role Variables
Variable | Description | Example |
---|---|---|
teeworlds_version |
The version of the Teeworlds server to install | 0.7.5 |
teeworlds_server_name |
The name of the server that will appear in the game | Another teeworlds server |
install_path |
The location on the server where Teeworlds will be installed | /opt/teeworlds |
extra_configs |
Any extra settings for Teeworlds. More info at Teeworlds Docs | extra_configs: | sv_max_clients 15 |
Dependencies
No other roles are needed; the Teeworlds server is downloaded from https://downloads.teeworlds.com.
Example Playbook and Inventory
Here’s a sample playbook:
- name: Install Teeworld
hosts: all
roles:
- nautik1.teeworlds
And here’s a sample inventory:
all:
hosts:
<ip-or-hostname>:
vars:
teeworlds_version: 0.7.5
teeworlds_server_name: Another teeworlds server
install_path: /opt/teeworlds
extra_configs: |
sv_max_clients 15
License
Licensed under the WTFPL.