Initial commit

This commit is contained in:
Alex 2020-05-31 11:38:58 +02:00
commit 97682bf865
Signed by: caskd
GPG Key ID: F92BA85F61F4C173

10
tasks/main.yml Normal file
View 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