24 lines
466 B
YAML
24 lines
466 B
YAML
|
---
|
||
|
- name: "Create directory for backups"
|
||
|
ansible.builtin.file:
|
||
|
path: "{{rsnapshot_snapshot_root}}"
|
||
|
state: directory
|
||
|
|
||
|
- name: "Deploy configuration from template"
|
||
|
template:
|
||
|
src: etc.rsnapshot.conf.j2
|
||
|
dest: /etc/rsnapshot.conf
|
||
|
mode: 0644
|
||
|
owner: root
|
||
|
group: root
|
||
|
|
||
|
- name: "Deploy cronjob from file"
|
||
|
ansible.builtin.copy:
|
||
|
src: etc.cron.d.rsnapshot
|
||
|
dest: /etc/cron.d/rsnapshot
|
||
|
mode: 0644
|
||
|
owner: root
|
||
|
group: root
|
||
|
|
||
|
#
|