Some checks failed
Ansible Dry Run / Explore-Gitea-Actions (push) Failing after 13s
27 lines
No EOL
596 B
YAML
27 lines
No EOL
596 B
YAML
---
|
|
- name: Install Relax and Recover Packages for Disaster Recovery
|
|
ansible.builtin.package:
|
|
name:
|
|
- rear
|
|
- sshfs
|
|
- tmux
|
|
- pigz
|
|
state: present
|
|
|
|
- name: Setup rear config
|
|
ansible.builtin.template:
|
|
src: roles/basic_packages/files/local.conf
|
|
dest: /etc/rear/local.conf
|
|
owner: root
|
|
group: root
|
|
mode: '0600'
|
|
|
|
- name: Create backup cronjob for DR
|
|
ansible.builtin.cron:
|
|
name: run a rear full backup
|
|
weekday: "7"
|
|
minute: "20"
|
|
hour: "3"
|
|
user: root
|
|
job: "/usr/sbin/rear mkbackup > /dev/null"
|
|
cron_file: rear_backup_full |