Compare commits

...

2 commits

Author SHA1 Message Date
460fe20559 add ansible common role
Signed-off-by: Frank Villaro-Dixon <frank@villaro-dixon.eu>
2024-10-22 15:05:03 +02:00
163c716fc9 Fix rsnapshot cfg
Signed-off-by: Frank Villaro-Dixon <frank@villaro-dixon.eu>
2024-10-22 15:04:55 +02:00
2 changed files with 13 additions and 2 deletions

View file

@ -1,5 +1,10 @@
--- ---
- hosts: backup_server - hosts: backup_server
roles:
- name: common
vars:
ansible_cfg_repo: infra/backups
tasks: tasks:
# - name: install necessary packages # - name: install necessary packages
# ansible.builtin.apt: # ansible.builtin.apt:
@ -76,6 +81,12 @@
register: rsnapshot_conf register: rsnapshot_conf
tags: rsnapshot tags: rsnapshot
- name: Check rsnapshot config
ansible.builtin.command:
cmd: rsnapshot configtest
register: rsnapshot_configtest
tags: rsnapshot
- name: Copy systemd unit files - name: Copy systemd unit files
ansible.builtin.copy: ansible.builtin.copy:
src: files/{{ item }} src: files/{{ item }}

View file

@ -235,7 +235,7 @@ backup /mnt/kdrive/ kdrive/
### kubernetes PVCs ### kubernetes PVCs
backup /mnt/syno/k8home/ k8home/ backup /mnt/syno/k8home/ k8home/
# LOCALHOST # LOCALHOST
#backup /home/ localhost/ #backup /home/ localhost/
@ -265,4 +265,4 @@ backup /mnt/syno/k8home/ k8home/
# vim: ts=4:sw=4:noet: