aws-vpc-cgw
Ansible role: AWS VPC CGW
This role handles the creation of any number of customer gateways.
Requirements
- Ansible 2.5
Additional variables
Additional variables that can be used (either as host_vars
/group_vars
or via command line args):
Variable | Description |
---|---|
aws_vpc_vgw_profile |
Boto profile name to be used |
aws_vpc_cgw_default_region |
Default region to use |
Example definition
Required parameter only
aws_vpc_cgws:
- name: playground-cgw-provider-ext
ip_address: 185.28.50.12
- name: playground-cgw-office-hq
ip_address: 185.28.50.10
All available parameter
aws_vpc_cgws:
- name: playground-cgw-provider-ext
ip_address: 185.28.50.12
bgp_asn: 65000
routing: dynamic
region: eu-central-1
tags:
- key: env
val: playground
- key: department
val: devops
- name: playground-cgw-office-hq
ip_address: 185.28.50.10
bgp_asn: 65000
routing: dynamic
region: eu-central-1
tags:
- key: env
val: playground
- key: department
val: devops
Testing
Requirements
- Docker
- yamllint
Run tests
# Lint the source files
make lint
# Run integration tests with default Ansible version
make test
# Run integration tests with custom Ansible version
make test ANSIBLE_VERSION=2.4