Michael Grote
7a24089031
Reviewed-on: #584 Co-authored-by: Michael Grote <michael.grote@posteo.de> Co-committed-by: Michael Grote <michael.grote@posteo.de>
23 lines
477 B
YAML
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"
|