ansible-role-minecraft/handlers/main.yml

10 lines
214 B
YAML

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