mirror of
https://github.com/davestephens/ansible-nas
synced 2025-01-26 02:05:05 +00:00
Add Minecraft Bedrock Server ⛏🧱
This commit is contained in:
parent
5311ad72d7
commit
d66b5a2489
4 changed files with 30 additions and 1 deletions
4
nas.yml
4
nas.yml
|
@ -218,6 +218,10 @@
|
|||
tags:
|
||||
- mealie
|
||||
|
||||
- role: minecraft-bedrock-server
|
||||
tags:
|
||||
- minecraft-bedrock-server
|
||||
|
||||
- role: minecraft-server
|
||||
tags:
|
||||
- minecraft-server
|
||||
|
|
|
@ -9,9 +9,13 @@ minecraft_bedrock_server_port: "19132"
|
|||
|
||||
# docker
|
||||
minecraft_bedrock_server_container_name: minecraft-bedrock-server
|
||||
minecraft_bedrock_server_image: itzg/minecraft-bedrock-server
|
||||
|
||||
# minecraft settings
|
||||
minecraft_bedrock_server_name: "Ansible-NAS Minecraft Server"
|
||||
minecraft_bedrock_server_game_mode: "creative"
|
||||
minecraft_bedrock_server_difficulty: "normal"
|
||||
minecraft_bedrock_server_online_mode: "false"
|
||||
minecraft_bedrock_server_ops: "" # csv list of server ops xuids
|
||||
minecraft_bedrock_server_members: "" # csv list of server members
|
||||
minecraft_bedrock_server_visitors: "" # csv list of server visitors
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
- name: Minecraft Bedrock Server Docker Container
|
||||
community.docker.docker_container:
|
||||
name: "{{ minecraft_bedrock_server_container_name }}"
|
||||
image: itzg/minecraft-bedrock-server
|
||||
image: "{{ minecraft_bedrock_server_image }}"
|
||||
pull: true
|
||||
volumes:
|
||||
- "{{ minecraft_bedrock_server_data_directory }}:/data:rw"
|
||||
|
@ -23,6 +23,9 @@
|
|||
GAMEMODE: "{{ minecraft_bedrock_server_game_mode }}"
|
||||
DIFFICULTY: "{{ minecraft_bedrock_server_difficulty }}"
|
||||
ONLINE_MODE: "{{ minecraft_bedrock_server_online_mode }}"
|
||||
OPS: "{{ minecraft_bedrock_server_ops }}"
|
||||
MEMBERS: "{{ minecraft_bedrock_server_members }}"
|
||||
VISITORS: "{{ minecraft_bedrock_server_visitors }}"
|
||||
restart_policy: unless-stopped
|
||||
when: minecraft_bedrock_server_enabled is true
|
||||
|
||||
|
|
18
website/docs/applications/gaming/minecraft-bedrock-server.md
Normal file
18
website/docs/applications/gaming/minecraft-bedrock-server.md
Normal file
|
@ -0,0 +1,18 @@
|
|||
---
|
||||
title: "Minecraft Bedrock Server"
|
||||
---
|
||||
|
||||
Homepage: [https://www.minecraft.net/](https://www.minecraft.net/)
|
||||
Docker Image: [https://github.com/itzg/docker-minecraft-bedrock-server](https://github.com/itzg/docker-minecraft-bedrock-server)
|
||||
|
||||
The server version of the game Minecraft (Bedrock edition), running in a container.
|
||||
|
||||
"Prepare for an adventure of limitless possibilities as you build, mine, battle mobs, and explore the ever-changing Minecraft landscape."
|
||||
|
||||
## Usage
|
||||
|
||||
Set `minecraft_bedrock_server_enabled: true` in your `inventories/<your_inventory>/group_vars/nas.yml` file.
|
||||
|
||||
The Ansible NAS host or ip address should then be usable as a server within the Minecraft multiplayer game menu.
|
||||
|
||||
The image `itzg/minecraft-bedrock-server` has [documentation](https://github.com/itzg/docker-minecraft-bedrock-server) with further details on how to manage the Minecraft server instance.
|
Loading…
Reference in a new issue