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 }}'