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
roles:
- name: common
vars:
ansible_cfg_repo: infra/backups
tasks:
# - name: install necessary packages
# ansible.builtin.apt:
@ -76,6 +81,12 @@
register: rsnapshot_conf
tags: rsnapshot
- name: Check rsnapshot config
ansible.builtin.command:
cmd: rsnapshot configtest
register: rsnapshot_configtest
tags: rsnapshot
- name: Copy systemd unit files
ansible.builtin.copy:
src: files/{{ item }}

View file

@ -265,4 +265,4 @@ backup /mnt/syno/k8home/ k8home/
# vim: ts=4:sw=4:noet: