diff --git a/playbooks/deploy-minecraft.yml b/playbooks/deploy-minecraft.yml new file mode 100644 index 0000000..b7da7aa --- /dev/null +++ b/playbooks/deploy-minecraft.yml @@ -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"