Add deployment playbook for inteirm minecraft server
This commit is contained in:
parent
448e2e4423
commit
2a9f5fb965
33
playbooks/deploy-minecraft.yml
Normal file
33
playbooks/deploy-minecraft.yml
Normal file
@ -0,0 +1,33 @@
|
||||
---
|
||||
- name: Deploy plex container
|
||||
hosts: remus
|
||||
tasks:
|
||||
- name: Create world volume
|
||||
docker_volume:
|
||||
name: minecraft
|
||||
driver: local
|
||||
state: present
|
||||
recreate: never
|
||||
|
||||
- name: Launch minecraft server container
|
||||
docker_container:
|
||||
name: mcs
|
||||
state: started
|
||||
image: itzg/minecraft-server
|
||||
recreate: "{{ omni_update_minecraft | default(false) | bool }}"
|
||||
volumes:
|
||||
- minecraft:/data
|
||||
published_ports:
|
||||
- "25565:25565/tcp"
|
||||
env:
|
||||
EULA: "TRUE"
|
||||
VERSION: 1.15.2
|
||||
MAX_MEMORY: "8G"
|
||||
MOTD: "A home for buttery companions"
|
||||
MODE: survival
|
||||
OPS: ScifiGeek42
|
||||
WHITELIST: "ScifiGeek42,fantasycat256,CoffeePug"
|
||||
MAX_BUILD_HEIGHT: "512"
|
||||
SNOOPER_ENABLED: "false"
|
||||
ICON: https://cdn.enp.one/img/logos/e-w-sm.png
|
||||
ENABLE_RCON: "false"
|
Reference in New Issue
Block a user