Ansible module to get availability zones
- Ansible
- Boto3
- hosts: localhost
connection: local
tasks:
- ec2_availability_zones:
region: 'us-west-2'
or
- hosts: localhost
connection: local
tasks:
- ec2_availability_zones:
aws_access_key: "{{ aws_access_key }}"
aws_secret_key: "{{ aws_secret_key }}"
region: 'us-west-2'
state: available