Git Product home page Git Product logo

ltp's Introduction

Minecraft Server Ansible Role

This Ansible role is designed for the quick deployment and configuration of a Minecraft server. It simplifies the process of setting up a Minecraft server, allowing for easy customization and management of server settings and plugins. Requirements

  • Ansible 2.9 or higher.
  • Target systems should be a Linux distribution compatible with the Minecraft server requirements (e.g., Debian 12).

Features

  • Automated Minecraft server installation.
  • Easy plugin management.
  • Customizable server properties.

Getting Started

Installing the Role

To use this role, clone it into your Ansible roles directory:

git clone https://github.com/boubik/LTP.git
cd LTP

or

ansible-galaxy install git+https://github.com/boubik/LTP.git

Installation may differ from the first option.

Configuring Your Inventory

Edit the inventory.yaml file to include the target hosts where LTP will be deployed. For example:

all:
  hosts:
    server1:
      ansible_host: 192.168.1.100
    server2:
      ansible_host: 192.168.1.101
  vars:
    ansible_user: your_user
    ansible_ssh_private_key_file: /path/to/your/key

Customizing Role Variables

Configure role-specific parameters in vars/main.yml to tailor the LTP deployment to your needs. Common settings include:

# java
java_version_debian: "openjdk-17-jdk"
java_executable_path: "/usr/lib/jvm/java-17-openjdk-amd64/bin/java"

# minecraft
minecraft_eula: true
minecraft_user: "minecraft"
minecraft_dir: "vanila-1.20.4"
...

Configuring Plugins

To add plugins, list them in vars/main.yml including their download URLs or adding them to files/plugins. Example:

minecraft_plugin_urls:
  - "http://example.com/plugin/plugin1.jar"
  - "http://example.com/plugin/plugin2.jar"
  - "http://example.com/plugin/plugin3.jar"

Running the Role

Create a playbook (e.g., mcPlaybook.yml) including the LTP (mc-1.20.4) role:

- name: Setup Minecraft Server
  hosts: vms
  become: yes
  roles:
    - mc-1.20.4

Execute the playbook using the following command:

ansible-playbook -i inventory.yaml mcPlaybook.yml

Additional Configuration

Firewall Settings: Adjust your firewall settings to allow traffic on the Minecraft server port (default is 25565).

Author Information

This role was created in 2024 by Jan Chlouba.

ltp's People

Contributors

boubik 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.