aboutsummaryrefslogtreecommitdiffstats
path: root/defaults
diff options
context:
space:
mode:
authorColin Wilk <colin@wilk.cx>2026-07-02 18:10:04 +0200
committerColin Wilk <colin@wilk.cx>2026-07-02 18:10:04 +0200
commit50b914e77695fd1cdb294653f20143747e7e3b01 (patch)
treeb667145cd04e39abb52d1680fc61a17513ae0af6 /defaults
parent66e46df3d2a840bf62ef8084ad171041772db65e (diff)
downloadansible-role-borgbackup-50b914e77695fd1cdb294653f20143747e7e3b01.tar.gz
ansible-role-borgbackup-50b914e77695fd1cdb294653f20143747e7e3b01.zip
Add state: absent variable
Allow removing configuration for repositories.
Diffstat (limited to 'defaults')
-rw-r--r--defaults/main.yml15
1 files changed, 15 insertions, 0 deletions
diff --git a/defaults/main.yml b/defaults/main.yml
index c508975..1c9d05d 100644
--- a/defaults/main.yml
+++ b/defaults/main.yml
@@ -1,5 +1,20 @@
---
################################################################################
+# State Configuration
+################################################################################
+
+# Desired state of the backup configuration.
+# - present: Create/update backup configuration (default)
+# - absent: Remove backup configuration
+state: present
+
+# DANGEROUS: Delete repository data on server when state: absent.
+# When false (default), only configuration is removed, repository data is preserved.
+# When true, repository data is permanently deleted from the server.
+# This is destructive and cannot be undone.
+borg_dangerously_delete_backups: false
+
+################################################################################
# Borg Client User Configuration
################################################################################