ansible-role--rsnapshot/tasks/_configure.yml

24 lines
466 B
YAML
Raw Normal View History

2024-07-12 12:35:24 +00:00
---
- 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
#