Initial commit
This commit is contained in:
commit
97682bf865
|
@ -0,0 +1,10 @@
|
||||||
|
- name: Mount items
|
||||||
|
loop: "{{ mounts }}"
|
||||||
|
mount:
|
||||||
|
path: "{{ item.dest }}"
|
||||||
|
src: "{% if item.uuid|default() %}/dev/disk/by-uuid/{{ item.uuid }}{% else %}{{ item.path }}{% endif %}"
|
||||||
|
state: "{{ item.state|default('mounted') }}"
|
||||||
|
fstype: "{{ item.fstype|default('ext4') }}"
|
||||||
|
tags:
|
||||||
|
- mounts
|
||||||
|
when: (mounts| default([])) | length
|
Reference in New Issue