homeserver/friedhof/mgrote_timeshift/mgrote.timeshift/tasks/main.yml

24 lines
477 B
YAML
Raw Normal View History

---
- 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"