This commit is contained in:
nain-F49FF806 2023-03-19 10:29:52 +00:00 committed by GitHub
commit 230200bcb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@ galaxy_info:
description: Set up backup to remote machine using Borg and Borgmatic.
company: "BorgBase.com"
license: license (BSD, MIT)
min_ansible_version: 2.0
min_ansible_version: "2.0"
platforms:
- name: Debian
versions:

View File

@ -51,6 +51,7 @@
mode: 0600
- name: Add cron-job for borgmatic (large repo, create and check separate)
when: borgmatic_large_repo
block:
- name: Add cron job for regular create and prune
cron:
@ -69,9 +70,9 @@
user: "root"
cron_file: "{{ borgmatic_cron_name }}"
job: "borgmatic -c /etc/borgmatic/{{ borgmatic_config_name }} -k"
when: borgmatic_large_repo
- name: Add cron-job for borgmatic (normal-sized repo)
when: not borgmatic_large_repo
block:
- name: Add cron job for create, check and prune
cron:
@ -85,7 +86,6 @@
cron:
name: "{{ borgmatic_cron_name }}-check"
state: absent
when: not borgmatic_large_repo
- name: Set PATH for borgmatic cron job.
cron: