20 lines
577 B
YAML
20 lines
577 B
YAML
---
|
|
- name: Mount | Create mountpoint directory
|
|
ansible.builtin.file:
|
|
path: "{{ gpu_model_storage_mountpoint }}"
|
|
state: directory
|
|
mode: "0755"
|
|
|
|
- name: Mount | Get UUID of RAID array
|
|
ansible.builtin.command: "blkid -s UUID -o value {{ gpu_model_storage_raid_device }}"
|
|
register: _md_uuid
|
|
changed_when: false
|
|
|
|
- name: Mount | Mount persistently (UUID, nofail)
|
|
ansible.posix.mount:
|
|
path: "{{ gpu_model_storage_mountpoint }}"
|
|
src: "UUID={{ _md_uuid.stdout }}"
|
|
fstype: "{{ gpu_model_storage_fstype }}"
|
|
opts: defaults,nofail
|
|
state: mounted
|