Skip to content

Commit 9d6332c

Browse files
committed
volume_group: Use cloud provider's default data disk
Thanks to recent commits, the volume_groups role can now use {{ data_device }} for AWS just like it does for other cloud providers. Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
1 parent 2f730a8 commit 9d6332c

File tree

1 file changed

+2
-2
lines changed
  • playbooks/roles/volume_group/tasks/terraform

1 file changed

+2
-2
lines changed

playbooks/roles/volume_group/tasks/terraform/aws.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@
2828
register: terraform_output
2929
changed_when: false
3030

31-
# FIXME: Stuff "/dev/sdf" into the data_device variable for AWS
3231
- name: Exclude the device that will house the /data file system
3332
vars:
3433
block_device_dict: "{{ terraform_output.stdout | from_json }}"
3534
local_map: "{{ block_device_dict[inventory_hostname] }}"
3635
ansible.builtin.set_fact:
3736
ebs_volume_ids: "{{ ebs_volume_ids + ['nvme-Amazon_Elastic_Block_Store_' + item.value | regex_replace('-', '')] }}"
38-
when: item.key != "/dev/sdf"
37+
when:
38+
item.key != data_device
3939
with_dict: "{{ local_map }}"
4040

4141
- name: Add unused EBS volumes to the volume list

0 commit comments

Comments
 (0)