Merge "borg-backup: disambiguate for multiple servers"
This commit is contained in:
commit
1bc5ceba98
@ -33,7 +33,7 @@
|
|||||||
IdentityFile /root/.ssh/id_borg_backup_ed25519
|
IdentityFile /root/.ssh/id_borg_backup_ed25519
|
||||||
User {{ borg_username }}
|
User {{ borg_username }}
|
||||||
mode: 0600
|
mode: 0600
|
||||||
marker: '# {mark} ANSIBLE MANAGED BLOCK borg-backup'
|
marker: '# {mark} ANSIBLE MANAGED BLOCK borg-backup {{ item }}'
|
||||||
with_inventory_hostnames: borg-backup-server
|
with_inventory_hostnames: borg-backup-server
|
||||||
|
|
||||||
- name: Generate borg_user info tuple
|
- name: Generate borg_user info tuple
|
||||||
@ -49,7 +49,7 @@
|
|||||||
|
|
||||||
- name: Install backup cron job
|
- name: Install backup cron job
|
||||||
cron:
|
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"
|
job: "/usr/local/bin/borg-backup {{ item }} 2>> /var/log/borg-backup-{{ item }}.log"
|
||||||
user: root
|
user: root
|
||||||
hour: '5'
|
hour: '5'
|
||||||
|
Loading…
Reference in New Issue
Block a user