mirror of
https://github.com/borgbase/ansible-role-borgbackup.git
synced 2025-04-13 01:15:56 +02:00
Extract asserts into their own file
These don't really belong in the "install" file.
This commit is contained in:
parent
781f1226e7
commit
e47f4bc4cc
9
tasks/00_assert.yml
Normal file
9
tasks/00_assert.yml
Normal file
@ -0,0 +1,9 @@
|
||||
---
|
||||
- name: Ensure legacy hooks aren't used
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- borgmatic_failure_command is undefined
|
||||
- borgmatic_before_backup_command is undefined
|
||||
- borgmatic_after_backup_command is undefined
|
||||
msg: Please use the new borgmatic_hooks variable instead of individual before/after/failure hooks.
|
||||
...
|
@ -1,14 +1,6 @@
|
||||
---
|
||||
- name: Install borgbackup
|
||||
block:
|
||||
- name: Ensure legacy hooks aren't used
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- borgmatic_failure_command is undefined
|
||||
- borgmatic_before_backup_command is undefined
|
||||
- borgmatic_after_backup_command is undefined
|
||||
msg: Please use the new borgmatic_hooks variable instead of individual before/after/failure hooks.
|
||||
|
||||
- name: Include OS-specific variables
|
||||
include_vars: "{{ item }}"
|
||||
with_first_found:
|
||||
|
Loading…
Reference in New Issue
Block a user