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

Commit 81db994

Browse files
tymofiisobchenkogregharveydrazenCEfiliprupicfilip
authored
Replace ansible pause module pr devel 1.x (#746)
* 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 --------- 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 461e6a3 commit 81db994

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

roles/asg_management/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ In order to manipulate an AWS Autoscaling Group (ASG) your `deploy` user must ha
66
* `autoscaling:SuspendProcesses`
77
* `autoscaling:DescribeScalingProcessTypes`
88
* `autoscaling:DescribeAutoScalingGroups`
9+
* `autoscaling:StartInstanceRefresh`
910

1011
Set the `asg_management.name` to the machine name of your ASG in order to automatically suspend and resume autoscaling on build.
1112

roles/asg_management/defaults/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ asg_management:
77
#profile: "example" # optional, 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
10-
pause: 5 # how long in seconds to wait before polling the AWS API again for instance statuses
10+
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/asg_management/tasks/asg_target_health.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
---
22
- name: Pause so as to not hammer the AWS API.
3-
ansible.builtin.pause:
4-
seconds: "{{ asg_management.pause }}"
3+
ansible.builtin.command:
4+
cmd: "ping localhost -c {{ asg_management.pause }}"
5+
failed_when: false
56

67
- name: Empty the target list.
78
ansible.builtin.set_fact:

0 commit comments

Comments
 (0)