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

Commit 91658ae

Browse files
tymofiisobchenkogregharveydrazenCEfiliprupicfilip
authored
Fix asg management workaround task condition pr devel 1.x (#755)
* 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 --------- 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 4b69bdc commit 91658ae

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

roles/deploy_code/tasks/cleanup.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@
260260
delegate_to: localhost
261261
run_once: true
262262
when:
263+
- asg_management.name is defined
263264
- asg_management.name | length > 0
264265

265266
- name: Run ASG instance refresh.
@@ -276,6 +277,7 @@
276277
delegate_to: localhost
277278
run_once: true
278279
when:
280+
- asg_management.name is defined
279281
- asg_management.name | length > 0
280282
- asg_management.refresh_asg_instances
281283

@@ -290,7 +292,7 @@
290292
when:
291293
- deploy_code.service_action == "stop"
292294
- deploy_code.services | length > 0
293-
- not asg_management.refresh_asg_instances or (asg_management.name | length) == 0
295+
- not asg_management.refresh_asg_instances or asg_management.name is not defined
294296
# End of the squashFS block.
295297

296298
- name: Trigger an infrastructure rebuild.

0 commit comments

Comments
 (0)