mirror of
https://github.com/borgbase/ansible-role-borgbackup.git
synced 2025-04-22 01:17:22 +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
e179627077
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
|
- name: Install borgbackup
|
||||||
block:
|
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
|
- name: Include OS-specific variables
|
||||||
include_vars: "{{ item }}"
|
include_vars: "{{ item }}"
|
||||||
with_first_found:
|
with_first_found:
|
||||||
|
Loading…
Reference in New Issue
Block a user