aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--roles/digitalocean_volume/defaults/main.yml6
-rw-r--r--roles/digitalocean_volume/tasks/main.yml8
2 files changed, 7 insertions, 7 deletions
diff --git a/roles/digitalocean_volume/defaults/main.yml b/roles/digitalocean_volume/defaults/main.yml
index ebacd1d..9c3a4e1 100644
--- a/roles/digitalocean_volume/defaults/main.yml
+++ b/roles/digitalocean_volume/defaults/main.yml
@@ -1,3 +1,3 @@
-#volume_name:
-#volume_dir:
-volume_fs: ext4
+#digitalocean_volume_name:
+#digitalocean_volume_dir:
+digitalocean_volume_fs: ext4
diff --git a/roles/digitalocean_volume/tasks/main.yml b/roles/digitalocean_volume/tasks/main.yml
index 07d6c74..f881e11 100644
--- a/roles/digitalocean_volume/tasks/main.yml
+++ b/roles/digitalocean_volume/tasks/main.yml
@@ -1,8 +1,8 @@
-- name: 'Mount volume: {{ volume_name }}'
+- name: 'Mount volume: {{ digitalocean_volume_name }}'
become: true
ansible.posix.mount:
- path: "{{ volume_dir | default('/mnt/{{ volume_name }}') }}"
- src: '/dev/disk/by-id/scsi-0DO_Volume_{{ volume_name }}'
+ path: "{{ digitalocean_volume_dir | default('/mnt/{{ digitalocean_volume_name }}') }}"
+ src: '/dev/disk/by-id/scsi-0DO_Volume_{{ digitalocean_volume_name }}'
state: mounted
- fstype: '{{ volume_fs }}'
+ fstype: '{{ digitalocean_volume_fs }}'
opts: defaults,nofail,discard