Skip to content
This repository was archived by the owner on Oct 8, 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
2 changes: 1 addition & 1 deletion roles/asg_management/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# AWS ASG variables to allow for the suspension of autoscaling during a code deployment.
asg_management:
name: "" # if the deploy is on an ASG put the name here
target_group_name: "{{ asg_management.name }}" # change if different from the ASG name (which may happen due to the 32-char limit)
#target_group_name: "example" # matches the ASG name by default, specify if your TargetGroup name is different (for example due to the 32-char name length limit in AWS)
refresh_asg_instances: true # runs only if squashFS image unmount failed and this set to true.
#profile: "example" # optional, the boto profile name to use if not the system default
region: "eu-west-1"
Expand Down
2 changes: 1 addition & 1 deletion roles/asg_management/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
region: "{{ asg_management.region }}"
profile: "{{ asg_management.profile | default(omit) }}"
names:
- "{{ asg_management.target_group_name }}"
- "{{ asg_management.target_group_name | default(asg_management.name) }}"
register: _target_group

- name: Loop over target instances until they are all 'healthy'.
Expand Down