diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-08-22 21:18:50 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-08-22 21:23:59 +0200 |
commit | 86ccf27e0170f996cec3b148f4340d1a9eb92f5e (patch) | |
tree | 176f62eeccafb82c54f9f3e103a6b6a27d4fb3f5 /roles/digitalocean_volume/tasks/main.yml | |
parent | linux_status: disable power management before starting the service (diff) | |
download | infra-ansible-86ccf27e0170f996cec3b148f4340d1a9eb92f5e.tar.gz infra-ansible-86ccf27e0170f996cec3b148f4340d1a9eb92f5e.zip |
digitalocean_volume: properly prefix variables
Diffstat (limited to 'roles/digitalocean_volume/tasks/main.yml')
-rw-r--r-- | roles/digitalocean_volume/tasks/main.yml | 8 |
1 files changed, 4 insertions, 4 deletions
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 |