From 0214e6bd75b96fb7126e7a3aed49efa42dab0702 Mon Sep 17 00:00:00 2001 From: Salt Date: Sat, 9 Jan 2021 00:01:17 -0600 Subject: [PATCH] Only ever restart the Minecraft service if it's enabled --- handlers/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/handlers/main.yml b/handlers/main.yml index a9003dc..abc498c 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -6,3 +6,4 @@ name: "minecraft@{{ minecraft_name }}" state: restarted become: yes + when: minecraft_enabled