aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roles/digitalocean_volume/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/digitalocean_volume/tasks/main.yml')
-rw-r--r--roles/digitalocean_volume/tasks/main.yml6
1 files changed, 1 insertions, 5 deletions
diff --git a/roles/digitalocean_volume/tasks/main.yml b/roles/digitalocean_volume/tasks/main.yml
index c23da76..07d6c74 100644
--- a/roles/digitalocean_volume/tasks/main.yml
+++ b/roles/digitalocean_volume/tasks/main.yml
@@ -1,11 +1,7 @@
-- name: Set default mount point
- ansible.builtin.set_fact:
- volume_dir: "{{ volume_dir | default('/mnt/{{ volume_name }}') }}"
-
- name: 'Mount volume: {{ volume_name }}'
become: true
ansible.posix.mount:
- path: '{{ volume_dir }}'
+ path: "{{ volume_dir | default('/mnt/{{ volume_name }}') }}"
src: '/dev/disk/by-id/scsi-0DO_Volume_{{ volume_name }}'
state: mounted
fstype: '{{ volume_fs }}'