filesystem does not use uuid= syntax.
This commit is contained in:
parent
d789aff591
commit
af8bdeb472
|
@ -36,7 +36,7 @@
|
||||||
- name: Manage the additional file systems
|
- name: Manage the additional file systems
|
||||||
mount:
|
mount:
|
||||||
name: '{{ item.mountpoint }}'
|
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 }}'
|
fstype: '{{ item.fstype }}'
|
||||||
opts: '{{ item.opts }}'
|
opts: '{{ item.opts }}'
|
||||||
state: '{{ item.state }}'
|
state: '{{ item.state }}'
|
||||||
|
|
Loading…
Reference in New Issue