ansible-nas/roles/minecraft-server/tasks/main.yml
Justin D. Fetherolf 4146e19e6d 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.
2022-06-07 20:24:10 -06:00

20 lines
493 B
YAML

---
- 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