ansible/roles/minecraft/handlers/main.yaml

23 lines
469 B
YAML
Raw Normal View History

2019-10-05 21:41:47 +00:00
---
- name: minecraft daemon-reload
systemd:
name: "{{ minecraft_service_name }}"
daemon_reload: yes
state: restarted
- name: restart minecraft
service:
name: "{{ minecraft_service_name }}"
state: restarted
- name: restart rsyslog
service:
name: rsyslog
state: restarted
2020-01-23 02:16:31 +00:00
- name: restart minecraft instances
service:
name: "minecraft@{{ item.name }}.service"
state: restarted
loop: "{{ minecraft_worlds | default([]) }}"