aboutsummaryrefslogtreecommitdiffstats
path: root/tasks/validate_absent.yml
diff options
context:
space:
mode:
Diffstat (limited to 'tasks/validate_absent.yml')
-rw-r--r--tasks/validate_absent.yml10
1 files changed, 10 insertions, 0 deletions
diff --git a/tasks/validate_absent.yml b/tasks/validate_absent.yml
new file mode 100644
index 0000000..b234107
--- /dev/null
+++ b/tasks/validate_absent.yml
@@ -0,0 +1,10 @@
+---
+- name: Validate absent-state variables
+ ansible.builtin.assert:
+ that:
+ - borg_repo_name | length > 0
+ - borg_server_user_home | length > 0
+ - borg_backup_script_location | length > 0
+ fail_msg: >-
+ Invalid configuration for state=absent. Ensure borg_repo_name,
+ borg_server_user_home, and borg_backup_script_location are set.