Skip to content
Snippets Groups Projects
Commit 73264667 authored by Felix Schäfer's avatar Felix Schäfer :construction_worker:
Browse files

Handlers instead of register-when

parent 0072fc9c
Branches
Tags v1.6.0
No related merge requests found
---
- name: Enable borgmatic timer
systemd:
name: borgbackup.timer
enabled: true
daemon-reload: true
state: restarted
- name: Enable borgmatic-check timer
systemd:
name: borgbackup-check.timer
enabled: true
daemon-reload: true
state: restarted
......@@ -69,7 +69,7 @@
owner: "root"
group: "root"
mode: "0644"
register: service
notify: Enable borgmatic timer
- name: Add borgbackup timer
template:
......@@ -78,7 +78,7 @@
owner: "root"
group: "root"
mode: "0644"
register: timer
notify: Enable borgmatic timer
- name: Add borgbackup-check service
copy:
......@@ -87,7 +87,7 @@
owner: "root"
group: "root"
mode: "0644"
register: check_service
notify: Enable borgmatic-check timer
- name: Add borgbackup-check timer
copy:
......@@ -96,7 +96,7 @@
owner: "root"
group: "root"
mode: "0644"
register: check_timer
notify: Enable borgmatic-check timer
- name: Copy notify script
template:
......@@ -113,20 +113,4 @@
owner: root
group: root
mode: 0644
register: notify
- name: Reload systemctl
command: systemctl daemon-reload
when: "service.changed or timer.changed or notify.changed"
- name: Enable borgmatic timer
service:
name: "borgbackup.timer"
enabled: true
state: started
- name: Enable borgmatic-check timer
service:
name: "borgbackup-check.timer"
enabled: true
state: started
notify: Enable borgmatic-check timer
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment