From af177999d4a96b35464502cdf2e4877fa0da524f Mon Sep 17 00:00:00 2001 From: Vitaliy Kukharik Date: Fri, 22 Sep 2023 00:50:05 +0300 Subject: [PATCH] mount: Use UUID --- roles/mount/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/mount/tasks/main.yml b/roles/mount/tasks/main.yml index e07040c10..a11dbfd1b 100644 --- a/roles/mount/tasks/main.yml +++ b/roles/mount/tasks/main.yml @@ -49,7 +49,7 @@ - name: Mount the filesystem ansible.posix.mount: path: "{{ item.path | default(pg_data_mount_path | default('/pgdata', true), true) }}" - src: "{{ item.src }}" + src: "UUID={{ item.src }}" fstype: "{{ item.fstype | default(pg_data_mount_fstype | default('ext4', true), true) }}" opts: "{{ item.opts | default('defaults,noatime') }}" state: "{{ item.state | default('mounted') }}"