1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_restic_archiver.git synced 2024-08-16 10:09:49 +02:00
ansible_role_restic_archiver/tasks/systemd.yml

25 lines
644 B
YAML
Raw Permalink Normal View History

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