mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-06 02:54:26 +00:00
Merge pull request #1380 from kevinveenbirkenbach/fix/svc-storage-nfs-server/backup-mountpoint-race
fix(svc-storage-nfs-server): pre-create the backup mount point in the shared state
This commit is contained in:
1 file changed
+8
@@ -18,6 +18,14 @@
|
||||
group: root
|
||||
mode: "0755"
|
||||
|
||||
- name: "📁 Pre-create the {{ DIR_BACKUPS }} mount point in the shared state, so no two clients create it at once"
|
||||
ansible.builtin.file:
|
||||
path: "{{ [STORAGE_NFS_STATE_PATH, DIR_BACKUPS | relpath(DIR_VAR_LIB)] | path_join }}"
|
||||
state: directory
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0755"
|
||||
|
||||
- name: "✅ Assert the state subdir is strictly nested under the export base"
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
|
||||
Reference in new issue
Block a user