2021-06-24 07:25:32 +02:00
|
|
|
---
|
|
|
|
- name: install packages
|
|
|
|
become: yes
|
|
|
|
ansible.builtin.package:
|
|
|
|
name:
|
|
|
|
- timeshift
|
|
|
|
state: present
|
|
|
|
notify: create snapshot
|
|
|
|
|
|
|
|
- name: copy timeshift config
|
|
|
|
become: yes
|
|
|
|
ansible.builtin.template:
|
|
|
|
src: "timeshift.json"
|
|
|
|
dest: "/etc/timeshift/timeshift.json"
|
|
|
|
|
2021-07-01 15:26:45 +02:00
|
|
|
- name: create timeshift cronjob
|
2021-06-24 07:25:32 +02:00
|
|
|
become: yes
|
|
|
|
ansible.builtin.cron:
|
|
|
|
name: restic
|
|
|
|
state: present
|
|
|
|
job: "/usr/bin/timeshift --scripted --create"
|
|
|
|
minute: "7"
|
|
|
|
hour: "*/4"
|