aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/borg-client/handlers
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2018-12-29 16:55:31 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2018-12-29 16:55:31 +0100
commitfadb933360e65a0d6092b7864a5b74a88d519b42 (patch)
tree6b52a89ea11f05e85f6262d55ff41d1c5becc8a2 /ansible/roles/borg-client/handlers
parent5b59f49bd64aec53fe109bc62fe821f469f8d95b (diff)
downloadinfra-fadb933360e65a0d6092b7864a5b74a88d519b42.tar.gz
infra-fadb933360e65a0d6092b7864a5b74a88d519b42.tar.bz2
infra-fadb933360e65a0d6092b7864a5b74a88d519b42.tar.xz
infra-fadb933360e65a0d6092b7864a5b74a88d519b42.zip
borg: adding systemd timer for create-backup.
Diffstat (limited to 'ansible/roles/borg-client/handlers')
-rw-r--r--ansible/roles/borg-client/handlers/main.yml10
1 files changed, 10 insertions, 0 deletions
diff --git a/ansible/roles/borg-client/handlers/main.yml b/ansible/roles/borg-client/handlers/main.yml
new file mode 100644
index 0000000..6e31199
--- /dev/null
+++ b/ansible/roles/borg-client/handlers/main.yml
@@ -0,0 +1,10 @@
+- name: systemd daemon-reload
+ become: yes
+ systemd:
+ daemon_reload: true
+
+- name: service start create-backup.timer
+ become: yes
+ service:
+ name: create-backup.timer
+ state: restarted