2021-12-07 19:50:02 +01:00
|
|
|
---
|
2023-10-22 20:33:44 +02:00
|
|
|
- name: Create restic-archiver.service
|
2021-12-07 19:50:02 +01:00
|
|
|
become: true
|
|
|
|
ansible.builtin.template:
|
|
|
|
src: templates/restic-archiver.service.j2
|
|
|
|
dest: /lib/systemd/system/restic-archiver.service
|
|
|
|
mode: 0644
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
notify:
|
2023-10-22 20:33:44 +02:00
|
|
|
- Run systemctl daemon-reload
|
|
|
|
- Run systemctl enable restic-archiver.service
|
2021-12-07 19:50:02 +01:00
|
|
|
|
2023-10-22 20:33:44 +02:00
|
|
|
- name: Create restic-archiver.timer
|
2021-12-07 19:50:02 +01:00
|
|
|
become: true
|
|
|
|
ansible.builtin.template:
|
|
|
|
src: templates/restic-archiver.timer.j2
|
|
|
|
dest: /lib/systemd/system/restic-archiver.timer
|
|
|
|
mode: 0644
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
notify:
|
2023-10-22 20:33:44 +02:00
|
|
|
- Run systemctl daemon-reload
|
|
|
|
- Run systemctl start restic-archiver.timer
|