From 18c48f6a1bb2d1f5d821702513d762e3656ca1d3 Mon Sep 17 00:00:00 2001 From: Fernando L Fernandez <23255302+flfernandez@users.noreply.github.com> Date: Wed, 10 Mar 2021 18:48:57 +0000 Subject: [PATCH] Fix ec2_vol volume_size parameter (#86) --- create/tasks/aws.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/create/tasks/aws.yml b/create/tasks/aws.yml index 04203fc9..77a3ee2e 100644 --- a/create/tasks/aws.yml +++ b/create/tasks/aws.yml @@ -93,7 +93,7 @@ snapshot: "{{item.auto_volume.snapshot | default(omit)}}" device_name: "{{item.auto_volume.device_name}}" encrypted: "{{item.auto_volume.encrypted}}" - volume_size: "{%- if 'src' not in item.auto_volume -%}{{item.auto_volume.volume_size}}{%- endif -%}" + volume_size: "{%- if 'src' in item.auto_volume -%}{{omit}}{%- else -%}{{item.auto_volume.volume_size}}{%- endif -%}" volume_type: "{{item.auto_volume.volume_type}}" delete_on_termination: yes loop: "{{ cluster_hosts_target_denormalised_by_volume | selectattr('auto_volume.src', 'defined') | list }}"