#!/usr/bin/ansible-playbook # vim:ft=ansible: --- - name: "restart minecraft {{ minecraft_name }}" systemd: name: "minecraft@{{ minecraft_name }}" state: restarted become: yes when: minecraft_enabled