aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roles/digitalocean_volume/tasks/main.yml
blob: 07d6c745a87332178389a55696d61c6bc40ea228 (plain) (blame)
1
2
3
4
5
6
7
8
- name: 'Mount volume: {{ volume_name }}'
  become: true
  ansible.posix.mount:
    path: "{{ volume_dir | default('/mnt/{{ volume_name }}') }}"
    src: '/dev/disk/by-id/scsi-0DO_Volume_{{ volume_name }}'
    state: mounted
    fstype: '{{ volume_fs }}'
    opts: defaults,nofail,discard