Add minecraft-2 to ansible
This commit is contained in:
parent
8b5b34a33e
commit
047c65b66a
8 changed files with 86 additions and 65 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -14,6 +14,7 @@
|
||||||
/homebox/
|
/homebox/
|
||||||
/influxdb/
|
/influxdb/
|
||||||
/jellyfin/
|
/jellyfin/
|
||||||
|
/minecraft-2/
|
||||||
/minio/
|
/minio/
|
||||||
/synapse/
|
/synapse/
|
||||||
/tandoor/
|
/tandoor/
|
||||||
|
|
2
_ansible/inventory/host_vars/node001/main.yml
Normal file
2
_ansible/inventory/host_vars/node001/main.yml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
ansible_port: "{{ vault_node001.ansible_port }}"
|
||||||
|
ansible_user: "{{ vault_node001.ansible_user }}"
|
|
@ -2,6 +2,8 @@ all:
|
||||||
hosts:
|
hosts:
|
||||||
local-dev:
|
local-dev:
|
||||||
ansible_connection: local
|
ansible_connection: local
|
||||||
|
node001:
|
||||||
|
ansible_host: node001.serguzim.net
|
||||||
node002:
|
node002:
|
||||||
ansible_host: node002.serguzim.net
|
ansible_host: node002.serguzim.net
|
||||||
node003:
|
node003:
|
||||||
|
|
5
_ansible/node001.yml
Normal file
5
_ansible/node001.yml
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
- name: Run roles for node001
|
||||||
|
hosts: node001
|
||||||
|
roles:
|
||||||
|
- minecraft-2
|
8
_ansible/roles/minecraft-2/tasks/main.yml
Normal file
8
_ansible/roles/minecraft-2/tasks/main.yml
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
---
|
||||||
|
- name: Deploy {{ svc.name }}
|
||||||
|
tags:
|
||||||
|
- minecraft-2
|
||||||
|
- minecraft
|
||||||
|
- games
|
||||||
|
block:
|
||||||
|
- import_tasks: deploy-common-service.yml
|
68
_ansible/roles/minecraft-2/vars/main.yml
Normal file
68
_ansible/roles/minecraft-2/vars/main.yml
Normal file
|
@ -0,0 +1,68 @@
|
||||||
|
svc:
|
||||||
|
name: minecraft-2
|
||||||
|
|
||||||
|
svc_env:
|
||||||
|
ALLOW_FLIGHT: true
|
||||||
|
ALLOW_NETHER: true
|
||||||
|
ANNOUNCE_PLAYER_ACHIEVEMENTS: true
|
||||||
|
BROADCAST_CONSOLE_TO_OPS: true
|
||||||
|
BROADCAST_RCON_TO_OPS: true
|
||||||
|
CONSOLE: false
|
||||||
|
ENABLE_AUTOPAUSE: true
|
||||||
|
ENABLE_COMMAND_BLOCK: true
|
||||||
|
ENABLE_JMX: false
|
||||||
|
ENABLE_RCON: true
|
||||||
|
ENABLE_STATUS: true
|
||||||
|
ENABLE_WHITELIST: true
|
||||||
|
ENFORCE_WHITELIST: true
|
||||||
|
ENTITY_BROADCAST_RANGE_PERCENTAGE: 100
|
||||||
|
EULA: true
|
||||||
|
FORCE_GAMEMODE: false
|
||||||
|
FUNCTION_PERMISSION_LEVEL: 2
|
||||||
|
GENERATE_STRUCTURES: true
|
||||||
|
HARDCORDE: false
|
||||||
|
ICON:
|
||||||
|
LEVEL_TYPE: DEFAULT
|
||||||
|
MAX_BUILD_HEIGHT: 512
|
||||||
|
MAX_MEMORY: 4G
|
||||||
|
MAX_TICK_TIME: -1
|
||||||
|
MAX_PLAYERS: 64
|
||||||
|
MAX_WORLD_SIZE: 30000000
|
||||||
|
MODE: survival
|
||||||
|
MOTD:
|
||||||
|
NETWORK_COMPRESSION_THRESHOLD: 256
|
||||||
|
PVP: true
|
||||||
|
SERVER_NAME: minecraft.serguzim.me
|
||||||
|
SNOOPER_ENABLED: false
|
||||||
|
SPAWN_ANIMALS: true
|
||||||
|
SPAWN_MONSTERS: true
|
||||||
|
SPAWN_NPCS: true
|
||||||
|
SPAWN_PROTECTION: 0
|
||||||
|
SYNC_CHUNK_WRITES: true
|
||||||
|
TYPE: PAPER
|
||||||
|
ONLINE_MODE: true
|
||||||
|
OP_PERMISSION_LEVEL: 4
|
||||||
|
OPS: "{{ vault_minecraft_2.ops }}"
|
||||||
|
OVERRIDE_ICON: true
|
||||||
|
OVERRIDE_SERVER_PROPERTIES: true
|
||||||
|
PLAYER_IDLE_TIMEOUT: 0
|
||||||
|
PREVENT_PROXY_CONNECTIONS: false
|
||||||
|
SEED: "{{ vault_minecraft_2.seed }}"
|
||||||
|
USE_NATIVE_TRANSPORT: true
|
||||||
|
VERSION: LATEST
|
||||||
|
VIEW_DISTANCE: 10
|
||||||
|
WHITELIST: "{{ vault_minecraft_2.whitelist }}"
|
||||||
|
|
||||||
|
compose:
|
||||||
|
watchtower: false
|
||||||
|
image: itzg/minecraft-server
|
||||||
|
env: true
|
||||||
|
volumes:
|
||||||
|
- data:/data
|
||||||
|
file:
|
||||||
|
services:
|
||||||
|
app:
|
||||||
|
ports:
|
||||||
|
- "25565:25565"
|
||||||
|
volumes:
|
||||||
|
data:
|
|
@ -1,50 +0,0 @@
|
||||||
ALLOW_FLIGHT=true
|
|
||||||
ALLOW_NETHER=true
|
|
||||||
ANNOUNCE_PLAYER_ACHIEVEMENTS=true
|
|
||||||
BROADCAST_CONSOLE_TO_OPS=true
|
|
||||||
BROADCAST_RCON_TO_OPS=true
|
|
||||||
CONSOLE=false
|
|
||||||
ENABLE_AUTOPAUSE=true
|
|
||||||
ENABLE_COMMAND_BLOCK=true
|
|
||||||
ENABLE_JMX=false
|
|
||||||
ENABLE_RCON=true
|
|
||||||
ENABLE_STATUS=true
|
|
||||||
ENABLE_WHITELIST=true
|
|
||||||
ENFORCE_WHITELIST=true
|
|
||||||
ENTITY_BROADCAST_RANGE_PERCENTAGE=100
|
|
||||||
EULA=true
|
|
||||||
FORCE_GAMEMODE=false
|
|
||||||
FUNCTION_PERMISSION_LEVEL=2
|
|
||||||
GENERATE_STRUCTURES=true
|
|
||||||
HARDCORDE=false
|
|
||||||
ICON=
|
|
||||||
LEVEL_TYPE=DEFAULT
|
|
||||||
MAX_BUILD_HEIGHT=512
|
|
||||||
MAX_MEMORY=4G
|
|
||||||
MAX_TICK_TIME=-1
|
|
||||||
MAX_PLAYERS=64
|
|
||||||
MAX_WORLD_SIZE=30000000
|
|
||||||
MODE=survival
|
|
||||||
MOTD=
|
|
||||||
NETWORK_COMPRESSION_THRESHOLD=256
|
|
||||||
PVP=true
|
|
||||||
SERVER_NAME=minecraft.serguzim.me
|
|
||||||
SNOOPER_ENABLED=false
|
|
||||||
SPAWN_ANIMALS=true
|
|
||||||
SPAWN_MONSTERS=true
|
|
||||||
SPAWN_NPCS=true
|
|
||||||
SPAWN_PROTECTION=0
|
|
||||||
SYNC_CHUNK_WRITES=true
|
|
||||||
TYPE=PAPER
|
|
||||||
ONLINE_MODE=true
|
|
||||||
OP_PERMISSION_LEVEL=4
|
|
||||||
OPS=_Jmie,Serguzim
|
|
||||||
OVERRIDE_ICON=true
|
|
||||||
OVERRIDE_SERVER_PROPERTIES=true
|
|
||||||
PLAYER_IDLE_TIMEOUT=0
|
|
||||||
PREVENT_PROXY_CONNECTIONS=false
|
|
||||||
SEED=jmie2023
|
|
||||||
USE_NATIVE_TRANSPORT=true
|
|
||||||
VERSION=LATEST
|
|
||||||
VIEW_DISTANCE=10
|
|
||||||
WHITELIST=_Jmie,Serguzim
|
|
|
@ -1,15 +0,0 @@
|
||||||
version: '3.2'
|
|
||||||
|
|
||||||
services:
|
|
||||||
minecraft:
|
|
||||||
ports:
|
|
||||||
- "25565:25565"
|
|
||||||
volumes:
|
|
||||||
- data:/data
|
|
||||||
env_file:
|
|
||||||
- .env
|
|
||||||
image: itzg/minecraft-server
|
|
||||||
restart: always
|
|
||||||
|
|
||||||
volumes:
|
|
||||||
data:
|
|
Reference in a new issue