Skip to content
This repository was archived by the owner on Oct 7, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions roles/aws/aws_ec2_with_eip/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ aws_ec2_with_eip:
root_volume_delete_on_termination: true
ebs_optimized: true
security_groups: [] # list of security group names, converted to IDs by aws_security_groups role
public_ip: true # usually this needs to be true for cloud-init to work
tags:
Name: "{{ _domain_name }}"
# Add an A record tied to the EIP.
Expand Down
2 changes: 2 additions & 0 deletions roles/aws/aws_ec2_with_eip/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@
name: "{{ aws_ec2_with_eip.instance_name }}"
tags: "{{ aws_ec2_with_eip.tags }}"
security_groups: "{{ _aws_security_group_list }}" # variable populated by the aws_security_groups role
network_interfaces:
- assign_public_ip: "{{ aws_ec2_with_eip.public_ip }}"
ebs_optimized: "{{ aws_ec2_with_eip.ebs_optimized }}"
volumes:
- device_name: /dev/xvda
Expand Down
Loading