summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Fennell <matthew@fennell.dev>2025-07-05 23:17:03 +0100
committerMatthew Fennell <matthew@fennell.dev>2025-07-05 23:17:03 +0100
commit90cbbf486d952c657beabf3028b207364d125561 (patch)
tree025ebc7dade8c6fd6efc847e9e8ad98a778486aa
parentc6004f5481f4d06de2427ddb73619061ee06d3a4 (diff)
Remove borgmatic
Backups are now handled outside of the playbook.
-rw-r--r--files/borgmatic_config.yaml.j225
-rw-r--r--playbook.yaml29
2 files changed, 0 insertions, 54 deletions
diff --git a/files/borgmatic_config.yaml.j2 b/files/borgmatic_config.yaml.j2
deleted file mode 100644
index 1343351..0000000
--- a/files/borgmatic_config.yaml.j2
+++ /dev/null
@@ -1,25 +0,0 @@
-# SPDX-FileCopyrightText: 2024 Matthew Fennell <matthew@fennell.dev>
-#
-# SPDX-License-Identifier: AGPL-3.0-only
-
----
-
-location:
- source_directories:
- - /etc/prosody
- - /var/lib/prosody
- repositories:
- - "{{ borg_repo }}"
-storage:
- encryption_passphrase: "{{ borg_passphrase }}"
- ssh_command: ssh -i /root/.ssh/borg_key
- archive_name_format: "{{ virtual_host }}-{now}"
-retention:
- keep_daily: 7
- keep_weekly: 4
- keep_monthly: 12
- keep_yearly: 10
- prefix: "{{ virtual_host }}-"
-consistency:
- checks:
- - name: disabled
diff --git a/playbook.yaml b/playbook.yaml
index cad691d..b52c9ce 100644
--- a/playbook.yaml
+++ b/playbook.yaml
@@ -196,7 +196,6 @@
- name: Ensure required packages are installed
ansible.builtin.apt:
name:
- - borgmatic # Backups
- coturn # Audio / video calling server
- libjs-bootstrap4 # Used by invite webpage
- libjs-jquery # Used by invite webpage
@@ -436,34 +435,6 @@
enabled: true
become: true
- - name: Ensure borgmatic private key is installed
- ansible.builtin.copy:
- src: "{{ borg_private_key_path }}"
- dest: /root/.ssh/borg_key
- owner: root
- group: root
- mode: "0600"
- become: true
-
- - name: Ensure borgmatic config directory exists
- ansible.builtin.file:
- path: /etc/borgmatic
- state: directory
- owner: root
- group: root
- mode: "0700"
- become: true
-
- - name: Ensure borgmatic is configured
- ansible.builtin.template:
- src: "{{ playbook_dir }}/files/borgmatic_config.yaml.j2"
- dest: "/etc/borgmatic/config.yaml"
- owner: root
- group: root
- mode: "0600"
- validate: validate-borgmatic-config --config %s
- become: true
-
# Vultr adds a custom sshd_config file that enabled password authentication.
# I don't want this to be enabled, since I'm already copying the public key.
- name: Ensure password authentication is not explicitly enabled