This role is able to create any number of EIP's
- Ansible 2.5
Additional variables that can be used (either as host_vars
/group_vars
or via command line args):
Variable | Description |
---|---|
aws_vpc_eip_profile |
Boto profile name to be used |
aws_vpc_eip_default_region |
Default region to use |
aws_vpc_eip_release_on_disassociation |
Release EIP upon disassociation |
aws_vpc_eip_reuse_existing_ip_allowed |
Reuse any unassociated EIP if it exists |
When using the sane defaults, the only thing to configure for each eip is its name tag.
aws_vpc_eips:
- name: my-eip-1
- name: my-eip-2
Instead of using somebody's sane defaults, you can also add your custom overwrites.
aws_vpc_eips:
- name: my-eip-1
region: eu-central-1
tags:
- key: department
val: devops
- key: env
val: production
- name: my-eip-2
region: eu-central-1
release_on_disassociation: True
reuse_existing_ip_allowed: True
tags:
- key: department
val: devops
- key: env
val: testing
- Docker
- yamllint
# 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