hack to remove encryption_pass from borgmatic conf

This commit is contained in:
2024-01-06 23:32:18 +05:30
parent 6498b89732
commit 7719d7f479
3 changed files with 11 additions and 5 deletions

View File

@@ -182,6 +182,12 @@
validate: "/usr/sbin/sshd -T -f %s"
notify:
- Restart sshd
- name: Remove useless passphrase line
ansible.builtin.lineinfile:
dest: "/etc/borgmatic/config.yaml"
state: "absent"
regexp: "^.*encryption_passphrase"
handlers:
- name: Restart sshd
ansible.builtin.service: