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