k8s/roles/gpu_model_storage/tasks/mount.yml
2026-07-15 11:14:21 +03:00

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