mirror of
https://github.com/davestephens/ansible-nas
synced 2025-01-13 12:08:53 +00:00
4146e19e6d
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.
20 lines
493 B
YAML
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
|