filesystem does not use uuid= syntax.

This commit is contained in:
Andrea Dell'Amico 2022-11-08 10:43:14 +01:00
parent d789aff591
commit af8bdeb472
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 1 additions and 1 deletions

View File

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