From 97682bf8650bb5d51eaddb81e7599ae3dcf69d8e Mon Sep 17 00:00:00 2001 From: Alex Date: Sun, 31 May 2020 11:38:58 +0200 Subject: [PATCH] Initial commit --- tasks/main.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tasks/main.yml 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