|
|
@@ -50,3 +50,17 @@ |
|
|
|
when: |
|
|
|
filesystems_state == "mounted" or |
|
|
|
filesystems_state == "formated" |
|
|
|
|
|
|
|
- name: fstab |
|
|
|
mount: |
|
|
|
name: "{{ item.mount_point }}" |
|
|
|
src: "{{ (item.uuid is defined | ternary('UUID=','')) + item.uuid | default(item.device) }}" |
|
|
|
fstype: "{{ item.fstype }}" |
|
|
|
opts: "{{ item.opts | default('defaults') }}" |
|
|
|
state: present |
|
|
|
fstab: "{{ fstab_file }}" |
|
|
|
with_items: "{{ filesystems }}" |
|
|
|
when: |
|
|
|
filesystems_state == "configured" or |
|
|
|
filesystems_state == "mounted" or |
|
|
|
filesystems_state == "formated" |