homeserver/friedhof/mgrote_timeshift/mgrote.timeshift/tasks/main.yml
Michael Grote 7a24089031 fix linter errors (#584)
Reviewed-on: #584
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Co-committed-by: Michael Grote <michael.grote@posteo.de>
2023-10-25 22:26:17 +02:00

23 lines
477 B
YAML

---
- name: install packages
become: true
ansible.builtin.package:
name:
- timeshift
state: present
notify: create snapshot
- name: copy timeshift config
become: true
ansible.builtin.template:
src: "timeshift.json"
dest: "/etc/timeshift/timeshift.json"
- name: create timeshift cronjob
become: true
ansible.builtin.cron:
name: restic
state: present
job: "/usr/bin/timeshift --scripted --create"
minute: "7"
hour: "*/4"