mirror of
https://github.com/davestephens/ansible-nas
synced 2025-01-26 10:15:14 +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
|
* [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
|
* [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
|
* [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
|
* [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
|
* [Miniflux](https://miniflux.app/) - An RSS news reader
|
||||||
* [Mosquitto](https://mosquitto.org) - An open source MQTT broker
|
* [Mosquitto](https://mosquitto.org) - An open source MQTT broker
|
||||||
|
@ -61,7 +62,7 @@ If you have a spare domain name you can configure applications to be accessible
|
||||||
* [Ombi](https://ombi.io/) - web application that automatically gives your users the ability to request content
|
* [Ombi](https://ombi.io/) - web application that automatically gives your users the ability to request content
|
||||||
* [Organizr](https://organizr.app/) - ORGANIZR aims to be your one stop shop for your Servers Frontend.
|
* [Organizr](https://organizr.app/) - ORGANIZR aims to be your one stop shop for your Servers Frontend.
|
||||||
* [openHAB](https://www.openhab.org/) - A vendor and technology agnostic open source automation software for your home
|
* [openHAB](https://www.openhab.org/) - A vendor and technology agnostic open source automation software for your home
|
||||||
* [Paperless_ng](https://github.com/jonaswinkler/paperless-ng) - Scan, index and archive all your physical documents
|
* [Paperless_ng](https://github.com/jonaswinkler/paperless-ng) - Scan, index and archive all your physical documents
|
||||||
* [Piwigo](https://piwigo.org/) - Photo Gallery Software
|
* [Piwigo](https://piwigo.org/) - Photo Gallery Software
|
||||||
* [Plex](https://www.plex.tv/) - Plex Media Server
|
* [Plex](https://www.plex.tv/) - Plex Media Server
|
||||||
* [Portainer](https://portainer.io/) - for managing Docker and running custom images
|
* [Portainer](https://portainer.io/) - for managing Docker and running custom images
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
# Minecraft Server
|
# 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."
|
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
|
## 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.
|
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
|
- mealie
|
||||||
when: (mealie_enabled | default(False))
|
when: (mealie_enabled | default(False))
|
||||||
|
|
||||||
- role: minecraft
|
- role: minecraft-server
|
||||||
tags:
|
tags:
|
||||||
- minecraft
|
- minecraft-server
|
||||||
when: (minecraft_enabled | default(False))
|
when: (minecraft_server_enabled | default(False))
|
||||||
|
|
||||||
- role: minidlna
|
- role: minidlna
|
||||||
tags:
|
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