Selaa lähdekoodia
use new filter name for AWS availability zones
older ansible releases allows for specifying the availability zone in a filter as 'availability_zone'. newer ansible releases error out with:
TASK [get facts] ***************************************************************
Monday 02 April 2018 18:45:53 +0000 (0:00:00.055) 0:00:00.055 **********
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ClientError: An error occurred (InvalidParameterValue) when calling the DescribeSubnets operation: The filter 'availability_zone' is invalid
change the filter name to 'availability-zone' (availabilityZone would also work according to https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeSubnets.html