blob: 57ca0e2da94c23ce734b7c7ce84e4245615f812e (
plain) (
tree)
|
|
- name: Default mount path
ansible.builtin.set_fact:
volume_dir: "{{ volume_dir | default('/mnt/{{ volume_name }}') }}"
- name: Mount volume
become: true
ansible.posix.mount:
path: '{{ volume_dir }}'
src: '/dev/disk/by-id/scsi-0DO_Volume_{{ volume_name }}'
state: mounted
fstype: '{{ volume_fs }}'
opts: defaults,nofail,discard
|