Skip to content

Commit e179627

Browse files
strugeem3nu
authored andcommitted
Extract asserts into their own file
These don't really belong in the "install" file.
1 parent 781f122 commit e179627

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

tasks/00_assert.yml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
- name: Ensure legacy hooks aren't used
3+
ansible.builtin.assert:
4+
that:
5+
- borgmatic_failure_command is undefined
6+
- borgmatic_before_backup_command is undefined
7+
- borgmatic_after_backup_command is undefined
8+
msg: Please use the new borgmatic_hooks variable instead of individual before/after/failure hooks.
9+
...

tasks/01_install.yml

-8
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
11
---
22
- name: Install borgbackup
33
block:
4-
- name: Ensure legacy hooks aren't used
5-
ansible.builtin.assert:
6-
that:
7-
- borgmatic_failure_command is undefined
8-
- borgmatic_before_backup_command is undefined
9-
- borgmatic_after_backup_command is undefined
10-
msg: Please use the new borgmatic_hooks variable instead of individual before/after/failure hooks.
11-
124
- name: Include OS-specific variables
135
include_vars: "{{ item }}"
146
with_first_found:

0 commit comments

Comments
 (0)