From 8486e86f1e6082a48b983bdc9a0c5c91f87211a4 Mon Sep 17 00:00:00 2001 From: Matthew Fennell Date: Mon, 8 Jan 2024 23:37:09 +0000 Subject: Ensure borgmatic config directory exists This directory is created by a user command, not as part of the package installation process. Therefore, it may not exist if the user has not yet configured borgmatic on the host. --- playbook.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/playbook.yaml b/playbook.yaml index 8dc6fd8..84242c9 100644 --- a/playbook.yaml +++ b/playbook.yaml @@ -83,6 +83,14 @@ 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" -- cgit v1.2.3