24 lines
477 B
YAML
24 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"
|