commit 97682bf8650bb5d51eaddb81e7599ae3dcf69d8e Author: Alex Date: Sun May 31 11:38:58 2020 +0200 Initial commit diff --git a/tasks/main.yml b/tasks/main.yml new file mode 100644 index 0000000..64b0f63 --- /dev/null +++ b/tasks/main.yml @@ -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