diff options
author | Matthew Fennell <matthew@fennell.dev> | 2024-01-08 23:37:09 +0000 |
---|---|---|
committer | Matthew Fennell <matthew@fennell.dev> | 2024-01-08 23:37:09 +0000 |
commit | 8486e86f1e6082a48b983bdc9a0c5c91f87211a4 (patch) | |
tree | 6fe6fd907f25137840fee5121a1c85d1550900b5 /playbook.yaml | |
parent | 75633e9d40e0a3ef81b19aa415f68bba22602bd9 (diff) |
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.
Diffstat (limited to 'playbook.yaml')
-rw-r--r-- | playbook.yaml | 8 |
1 files changed, 8 insertions, 0 deletions
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" |