Coder Social home page Coder Social logo

ansible-role-terraria's Introduction

Ansible role: Terraria Server

Build Status Galaxy

Install your Terraira server in your Ubuntu server This palybook automatically installs the server, configures the firewall, and integrates management with systemd.
The server version is 1.4.0.1

Requirements

This role requires Ansible 2.7 or higher.

Role Variables

The role defines its variables in defaults/main.yml:

Varibles definitition

VARIABLE DESCRIPTION DEFAULT VALUE
world world file path "/var/terraria-worlds/myworld.wld"
maxplayers max player in the server 8
password password of server terraria
Motd Message of the day "Welcome!"
world_size World size is specified by: 1(small), 2(medium), and 3(large) 1
difficulty Sets world difficulty when using -autocreate. Options: 0(normal), 1(expert) 0
worldname world name world
security Adds additional cheat protection 1
worldpath worlds directory path /var/terraria-worlds
language language en/US

More information here: https://terraria.gamepedia.com/Server

Example Playbook

Run with default vars:

    ---

    - name: install terraria server
      hosts: all
      tags: master
      roles:
        - role: terraria server

Testing

Tests are performed using Molecule.

Install Molecule or use docker-compose run --rm molecule to run a local Docker container, based on the enterclousuite/molecule project, from where you can use molecule.

  1. Run molecule create to start the target Docker container on your local engine.
  2. Use molecule login to log in to the running container.
  3. Edit the role files.
  4. Add other required roles (external) in the molecule/default/requirements.yml file.
  5. Edit the molecule/default/playbook.yml.
  6. Define infra tests under the molecule/default/tests folder using the goos verifier.
  7. When ready, use molecule converge to run the Ansible Playbook and molecule verify to execute the test suite.
    Note that the converge process starts performing a syntax check of the role.
    Destroy the Docker container with the command molecule destroy.

To run all the steps with just one command, run molecule test.

ansible-role-terraria's People

Contributors

h4z31 avatar lorenzocomotti avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.