diff --git a/tasks/main.yml b/tasks/main.yml
index 71727070bfe27f21b18647efd90295ceee7d4670..37a0e3cdf77f7d6ec7ffcd505d03061e2f0ea196 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -49,6 +49,7 @@
     name: borgmatic
     state: latest
     executable: pip3
+    extra_args: "{{ (ansible_distribution_release == 'bookworm') | ternary('--break-system-packages', '') }}"
 
 - name: Create borgmatic config folder
   ansible.builtin.file: