Compare commits

...

3 Commits

Author SHA1 Message Date
ff8ef69ea5 Update minecraft-vanilla with some more configuration 2023-06-04 20:13:39 -05:00
36e2e73d23 Add some oneoff scripts 2023-06-04 19:55:10 -05:00
dfe8007bc5 Add a vanilla serber 2023-06-04 19:55:03 -05:00
3 changed files with 39 additions and 0 deletions

11
oneoffs/os-version.yml Executable file
View File

@ -0,0 +1,11 @@
#!/usr/bin/env ansible-playbook
# vim:ft=ansible:
- hosts: all
gather_facts: yes
become: no
tasks:
- name: print os info
debug: msg="{{ item }}"
with_items:
- "{{ ansible_distribution }}"
- "{{ ansible_distribution_version }}"

View File

@ -35,6 +35,7 @@
- web/transmission.yml
- game/factorio.yml
- game/minecraft-create-extra.yml
- game/minecraft-vanilla.yml
- game/satisfactory.yml
tags: [ always ]
roles:

View File

@ -0,0 +1,27 @@
# vim:ft=ansible:
- name: docker deploy minecraft - vanilla
docker_container:
name: minecraft-vanilla
state: started
image: itzg/minecraft-server:latest
restart_policy: unless-stopped
pull: yes
env:
DIFFICULTY: "normal"
ENABLE_COMMAND_BLOCK: "true"
EULA: "true"
MAX_PLAYERS: "8"
MODRINTH_PROJECT: "https://modrinth.com/modpack/adrenaserver"
MOTD: "Tannerite Dog Edition\\n#abolishtheatf"
OPS: "VintageSalt"
SNOOPER_ENABLED: "false"
SPAWN_PROTECTION: "0"
TYPE: "MODRINTH"
USE_AIKAR_FLAGS: "true"
VIEW_DISTANCE: "12"
ports:
- "26565:25565/tcp"
- "26565:25565/udp"
volumes:
- /data/minecraft/vanilla:/data
tags: [ docker, minecraft ]