Skip to content
This repository was archived by the owner on Oct 8, 2025. It is now read-only.

Commit cc4902c

Browse files
tymofiisobchenkogregharveydrazenCEfiliprupicfilip
authored
Aws profile for asg management pr devel 1.x (#757)
* Php unix socket pr 1.x (#724) * Moving cachetool adapter setup to the installer role and adding a test. * Updating cachetool documentation. * Php unix socket pr 1.x (#726) * Moving cachetool adapter setup to the installer role and adding a test. * Updating cachetool documentation. * Making sure _cachetool_adapter is always set. * Optional-drush-cr-before-import (#728) * 73171 fixing cachetool checks fpm pr 1.x (#729) * skipping cachetool check when no fpm * remove empty line --------- Co-authored-by: filip <filip.rupic@codeenigma.com> * asg_management_fix_and_improve (#733) * asg_management_fix_and_improve * asg_management_fix_and_improve * asg_management_fix_and_improve * asg_management_fix_and_improve * asg_management_fix_and_improve * Adding-delay-opcache-status-check (#737) * Adding-delay-opcache-status-check * Removing-failed-when * fix_var_name_for_asg_management (#739) * replace_ansible_pause_module (#747) * fix_asg_management_workaround_for_squashfs (#754) * fix_asg_management_workaround_for_squashfs * fix_asg_management_workaround_for_squashfs * fix_asg_management_workaround_task_condition (#756) * aws_profile_for_asg_management --------- Co-authored-by: Greg Harvey <greg.harvey@gmail.com> Co-authored-by: drazenCE <140631110+drazenCE@users.noreply.github.com> Co-authored-by: Filip Rupic <123341158+filiprupic@users.noreply.github.com> Co-authored-by: filip <filip.rupic@codeenigma.com>
1 parent 91658ae commit cc4902c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

roles/asg_management/defaults/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ asg_management:
44
name: "" # if the deploy is on an ASG put the name here
55
#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)
66
refresh_asg_instances: true # runs only if squashFS image unmount failed and this set to true.
7-
#profile: "example" # optional, the boto profile name to use if not the system default
7+
profile: "{{ lookup('env','AWS_PROFILE') | default(omit) }}" # the boto profile name to use if not the system default
88
region: "eu-west-1"
99
suspend_processes: "Launch Terminate HealthCheck" # space separated string, see https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-suspend-resume-processes.html
1010
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)

roles/deploy_code/tasks/cleanup.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@
255255
amazon.aws.autoscaling_group:
256256
name: "{{ asg_management.name }}"
257257
region: "{{ asg_management.region }}"
258-
profile: "{{ asg_management.profile | default(aws_profile | default(omit)) }}"
258+
profile: "{{ asg_management.profile | default(omit) }}"
259259
suspend_processes: []
260260
delegate_to: localhost
261261
run_once: true
@@ -267,7 +267,7 @@
267267
amazon.aws.autoscaling_instance_refresh:
268268
name: "{{ asg_management.name }}"
269269
region: "{{ asg_management.region }}"
270-
profile: "{{ asg_management.profile | default(aws_profile | default(omit)) }}"
270+
profile: "{{ asg_management.profile | default(omit) }}"
271271
strategy: Rolling
272272
preferences:
273273
min_healthy_percentage: 51

0 commit comments

Comments
 (0)