Initial commit
This commit is contained in:
commit
97682bf865
10
tasks/main.yml
Normal file
10
tasks/main.yml
Normal file
@ -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
Block a user