lvm_self_backup: Reload systemd if service changed

This commit is contained in:
saibotk 2021-11-20 03:30:44 +01:00
parent 21b54c11cf
commit e5d5d63714
Signed by: saibotk
GPG key ID: 67585F0065E261D5
2 changed files with 24 additions and 0 deletions

View file

@ -0,0 +1,23 @@
---
# Handlers for lvm_self_backup
# 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

View file

@ -65,6 +65,7 @@
with_items:
- "backup-lvm.service"
- "backup-lvm.timer"
notify: Reload systemd config
become: true
- name: Start & enable backup service timer.