Fix minecraft docker folder creation

The folder was being created even when not configured to be installed.
This commit is contained in:
Gustavo Ambrozio 2024-05-23 20:10:24 -10:00 committed by GitHub
parent a4773cf64b
commit 053459dd03
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,13 +1,13 @@
---
- name: Create Minecraft Bedrock Server Directories
ansible.builtin.file:
path: "{{ item }}"
state: directory
with_items:
- "{{ minecraft_bedrock_server_data_directory }}"
- name: Start Minecraft Bedrock Server
block:
- name: Create Minecraft Bedrock Server Directories
ansible.builtin.file:
path: "{{ item }}"
state: directory
with_items:
- "{{ minecraft_bedrock_server_data_directory }}"
- name: Minecraft Bedrock Server Docker Container
community.docker.docker_container:
name: "{{ minecraft_bedrock_server_container_name }}"