mirror of
https://github.com/roles-ansible/ansible_role_restic_archiver.git
synced 2024-08-16 10:09:49 +02:00
24 lines
644 B
YAML
24 lines
644 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:
|
|
- Run systemctl daemon-reload
|
|
- Run 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:
|
|
- Run systemctl daemon-reload
|
|
- Run systemctl start restic-archiver.timer
|