mg
0d17626c8f
doku bash alias als dotfile entfernt rg als standard dotfiles source timeshift aufgeräumt tasks wip timeshift snapd temp aus tasks Co-authored-by: Michael Grote <michael.grote@posteo.de> Reviewed-on: mg/ansible#129 Co-Authored-By: mg <mg@noreply.git.mgrote.net> Co-Committed-By: mg <mg@noreply.git.mgrote.net>
23 lines
511 B
YAML
23 lines
511 B
YAML
---
|
|
- 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"
|
|
|
|
- name: create restic cronjob
|
|
become: yes
|
|
ansible.builtin.cron:
|
|
name: restic
|
|
state: present
|
|
job: "/usr/bin/timeshift --scripted --create"
|
|
minute: "7"
|
|
hour: "*/4"
|