Only ever restart the Minecraft service if it's enabled

This commit is contained in:
Salt 2021-01-09 00:01:17 -06:00
parent e94937cd44
commit 0214e6bd75

View File

@ -6,3 +6,4 @@
name: "minecraft@{{ minecraft_name }}" name: "minecraft@{{ minecraft_name }}"
state: restarted state: restarted
become: yes become: yes
when: minecraft_enabled