From af8bdeb472fd00ee0c9c2bc7ba6a9bdc48e3da8d Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Tue, 8 Nov 2022 10:43:14 +0100 Subject: [PATCH] filesystem does not use uuid= syntax. --- tasks/additional_disks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/additional_disks.yml b/tasks/additional_disks.yml index 67cba9f..e2373da 100644 --- a/tasks/additional_disks.yml +++ b/tasks/additional_disks.yml @@ -36,7 +36,7 @@ - name: Manage the additional file systems mount: name: '{{ item.mountpoint }}' - src: "{{ item.root_device | default('/dev/') }}{{ item.device }}" + src: "{% if item.uuid is not defined %}{{ item.root_device | default('/dev/') }}{{ item.device }}{% else %}UUID={{ item.uuid }}{% endif %}" fstype: '{{ item.fstype }}' opts: '{{ item.opts }}' state: '{{ item.state }}'