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
2021-12-07 19:50:02 +01:00

24 lines
628 B
YAML

---
- name: create restic-archiver.service
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:
- systemctl daemon-reload
- systemctl enable restic-archiver.service
- name: create restic-archiver.timer
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:
- systemctl daemon-reload
- systemctl start restic-archiver.timer