aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-08-22 21:18:50 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-08-22 21:23:59 +0200
commit86ccf27e0170f996cec3b148f4340d1a9eb92f5e (patch)
tree176f62eeccafb82c54f9f3e103a6b6a27d4fb3f5
parentlinux_status: disable power management before starting the service (diff)
downloadinfra-ansible-86ccf27e0170f996cec3b148f4340d1a9eb92f5e.tar.gz
infra-ansible-86ccf27e0170f996cec3b148f4340d1a9eb92f5e.zip
digitalocean_volume: properly prefix variables
-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