mirror of
https://github.com/davestephens/ansible-nas
synced 2025-01-12 11:38:47 +00:00
Rename to minecraft-server
To avoid any confusion that this application is the client version of the game, rename the application to `minecraft-server`. This includes updating variables and documentation.
This commit is contained in:
parent
708d066f5a
commit
4146e19e6d
7 changed files with 36 additions and 35 deletions
|
@ -47,6 +47,7 @@ If you have a spare domain name you can configure applications to be accessible
|
|||
* [Krusader](https://krusader.org/) - Twin panel file management for your desktop
|
||||
* [Lidarr](https://github.com/lidarr/Lidarr) - Music collection manager for Usenet and BitTorrent users
|
||||
* [Mealie](https://hay-kot.github.io/mealie/) - A self-hosted recipe manager and meal planner
|
||||
* [Minecraft Server](https://www.minecraft.net/) - Server edition of the popular building and exploring game
|
||||
* [MiniDLNA](https://sourceforge.net/projects/minidlna/) - simple media server which is fully compliant with DLNA/UPnP-AV clients
|
||||
* [Miniflux](https://miniflux.app/) - An RSS news reader
|
||||
* [Mosquitto](https://mosquitto.org) - An open source MQTT broker
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
# Minecraft Server
|
||||
|
||||
Homepage: [https://www.minecraft.net](https://www.minecraft.net)
|
||||
Homepage: [https://www.minecraft.net/](https://www.minecraft.net/)
|
||||
|
||||
The server version of the game Minecraft, 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_enabled: true` in your `inventories/<your_inventory>/nas.yml` file.
|
||||
Set `minecraft_server_enabled: true` in your `inventories/<your_inventory>/nas.yml` file.
|
||||
|
||||
The Ansible NAS host or ip address should then be usable as a server within the Minecraft multiplayer game menu.
|
||||
|
6
nas.yml
6
nas.yml
|
@ -168,10 +168,10 @@
|
|||
- mealie
|
||||
when: (mealie_enabled | default(False))
|
||||
|
||||
- role: minecraft
|
||||
- role: minecraft-server
|
||||
tags:
|
||||
- minecraft
|
||||
when: (minecraft_enabled | default(False))
|
||||
- minecraft-server
|
||||
when: (minecraft_server_enabled | default(False))
|
||||
|
||||
- role: minidlna
|
||||
tags:
|
||||
|
|
9
roles/minecraft-server/defaults/main.yml
Normal file
9
roles/minecraft-server/defaults/main.yml
Normal file
|
@ -0,0 +1,9 @@
|
|||
---
|
||||
minecraft_server_enabled: false
|
||||
|
||||
# directories
|
||||
minecraft_server_data_directory: "{{ docker_home }}/minecraft"
|
||||
|
||||
# network
|
||||
minecraft_server_port: "25565"
|
||||
|
20
roles/minecraft-server/tasks/main.yml
Normal file
20
roles/minecraft-server/tasks/main.yml
Normal file
|
@ -0,0 +1,20 @@
|
|||
---
|
||||
- name: Create Minecraft Server Directories
|
||||
file:
|
||||
path: "{{ item }}"
|
||||
state: directory
|
||||
with_items:
|
||||
- "{{ minecraft_server_data_directory }}"
|
||||
|
||||
- name: Minecraft Server Docker Container
|
||||
docker_container:
|
||||
name: minecraft-server
|
||||
image: itzg/minecraft-server:latest
|
||||
pull: true
|
||||
volumes:
|
||||
- "{{ minecraft_server_data_directory }}:/data:rw"
|
||||
ports:
|
||||
- "{{ minecraft_server_port }}:25565"
|
||||
env:
|
||||
EULA: "TRUE"
|
||||
restart_policy: unless-stopped
|
|
@ -1,9 +0,0 @@
|
|||
---
|
||||
minecraft_enabled: false
|
||||
|
||||
# directories
|
||||
minecraft_data_directory: "{{ docker_home }}/minecraft"
|
||||
|
||||
# network
|
||||
minecraft_port: "25565"
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
---
|
||||
- name: Create Minecraft Directories
|
||||
file:
|
||||
path: "{{ item }}"
|
||||
state: directory
|
||||
with_items:
|
||||
- "{{ minecraft_data_directory }}"
|
||||
|
||||
- name: Minecraft Docker Container
|
||||
docker_container:
|
||||
name: minecraft
|
||||
image: itzg/minecraft-server:latest
|
||||
pull: true
|
||||
volumes:
|
||||
- "{{ minecraft_data_directory }}:/data:rw"
|
||||
ports:
|
||||
- "{{ minecraft_port }}:25565"
|
||||
env:
|
||||
EULA: "TRUE"
|
||||
restart_policy: unless-stopped
|
Loading…
Reference in a new issue