diff options
| author | Colin Wilk <colin@wilk.cx> | 2026-09-01 21:01:05 +0200 |
|---|---|---|
| committer | Colin Wilk <colin@wilk.cx> | 2026-09-01 21:43:57 +0200 |
| commit | 9c7586c7c3a235672ec6490d1a8bc44a222ce5d1 (patch) | |
| tree | 8b36c5ee3105da2ae769c0d9cd96683d213c949d /tasks/validate_absent.yml | |
| parent | fa137a92e1084a07608a4008ec0cb891baa76774 (diff) | |
| download | ansible-role-borgbackup-9c7586c7c3a235672ec6490d1a8bc44a222ce5d1.tar.gz ansible-role-borgbackup-9c7586c7c3a235672ec6490d1a8bc44a222ce5d1.zip | |
Add borg prune and compact jobs
Run repository retention either after a successful backup or from a
dedicated systemd timer. Clean up script generation with templates and
expand molecule test coverage.
BREAKING CHANGE: Aggregate backup scripts are no longer managed, and
state=preset now requires at least one readable included directory.
Diffstat (limited to 'tasks/validate_absent.yml')
| -rw-r--r-- | tasks/validate_absent.yml | 10 |
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. |