Merge "borg-backup: disambiguate for multiple servers"

This commit is contained in:
Zuul 2020-11-04 04:15:36 +00:00 committed by Gerrit Code Review
commit 1bc5ceba98

View File

@ -33,7 +33,7 @@
IdentityFile /root/.ssh/id_borg_backup_ed25519
User {{ borg_username }}
mode: 0600
marker: '# {mark} ANSIBLE MANAGED BLOCK borg-backup'
marker: '# {mark} ANSIBLE MANAGED BLOCK borg-backup {{ item }}'
with_inventory_hostnames: borg-backup-server
- name: Generate borg_user info tuple
@ -49,7 +49,7 @@
- name: Install backup cron job
cron:
name: "Run borg backup"
name: "Run borg backup to {{ item }}"
job: "/usr/local/bin/borg-backup {{ item }} 2>> /var/log/borg-backup-{{ item }}.log"
user: root
hour: '5'