minecraft_blockmap: Reload systemd if service changed
This commit is contained in:
parent
e5d5d63714
commit
c38e624ba1
2 changed files with 24 additions and 0 deletions
23
roles/minecraft_blockmap/handlers/main.yml
Normal file
23
roles/minecraft_blockmap/handlers/main.yml
Normal file
|
@ -0,0 +1,23 @@
|
|||
---
|
||||
# Handlers for minecraft_blockmap
|
||||
|
||||
# Infrastructure
|
||||
# Ansible instructions to deploy the infrastructure
|
||||
# Copyright (C) 2021 Saibotk
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, version 3 of the License.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
- name: Reload systemd config
|
||||
systemd:
|
||||
daemon_reload: true
|
||||
become: true
|
|
@ -132,6 +132,7 @@
|
|||
with_items:
|
||||
- "blockmap-render.service"
|
||||
- "blockmap-render.timer"
|
||||
notify: Reload systemd config
|
||||
become: true
|
||||
|
||||
- name: Start & enable render service timer
|
||||
|
|
Loading…
Add table
Reference in a new issue