aboutsummaryrefslogblamecommitdiffstatshomepage
path: root/roles/digitalocean_volume/tasks/main.yml
blob: 57ca0e2da94c23ce734b7c7ce84e4245615f812e (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12










                                                                      
- 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