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 @@ -4,7 +4,7 @@ asg_management:
name: "" # if the deploy is on an ASG put the name here
#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
profile: "{{ lookup('env','AWS_PROFILE') | trim | default(omit) }}" # the boto profile name to use if not the system default (if doesn't exist, then EC2 instance IAM profile will be used)
region: "eu-west-1"
suspend_processes: "Launch Terminate HealthCheck" # space separated string, see https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-suspend-resume-processes.html
pause: 10 # localhost ping count, to wait before polling the AWS API again for instance statuses (instead of ansible 'pause' module which seems to be buggy and hangs sometimes)
4 changes: 2 additions & 2 deletions roles/deploy_code/tasks/cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@
amazon.aws.autoscaling_group:
name: "{{ asg_management.name }}"
region: "{{ asg_management.region }}"
profile: "{{ asg_management.profile | default(aws_profile | default(omit)) }}"
profile: "{{ asg_management.profile | default(omit) }}"
suspend_processes: []
delegate_to: localhost
run_once: true
Expand All @@ -267,7 +267,7 @@
amazon.aws.autoscaling_instance_refresh:
name: "{{ asg_management.name }}"
region: "{{ asg_management.region }}"
profile: "{{ asg_management.profile | default(aws_profile | default(omit)) }}"
profile: "{{ asg_management.profile | default(omit) }}"
strategy: Rolling
preferences:
min_healthy_percentage: 51
Expand Down