From 0402a85af2413936c8fc3f33dbfbce0d0c77a57f Mon Sep 17 00:00:00 2001 From: tim Date: Tue, 12 Nov 2024 13:16:31 +0200 Subject: [PATCH] revert changes as the bug is outside of ce-provision https://github.com/ansible-collections/amazon.aws/issues/2376 --- roles/aws/aws_ec2_autoscale_cluster/tasks/main.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/roles/aws/aws_ec2_autoscale_cluster/tasks/main.yml b/roles/aws/aws_ec2_autoscale_cluster/tasks/main.yml index bf55ccc68..fdc8384c6 100644 --- a/roles/aws/aws_ec2_autoscale_cluster/tasks/main.yml +++ b/roles/aws/aws_ec2_autoscale_cluster/tasks/main.yml @@ -348,7 +348,7 @@ Port: "{{ aws_ec2_autoscale_cluster.alb_http_port }}" DefaultActions: - Type: forward - TargetGroupArn: "{{ _aws_ec2_target_group_created.target_group_arn }}" + TargetGroupName: "{{ aws_ec2_autoscale_cluster.name }}" Rules: "{{ aws_ec2_autoscale_cluster.listeners_http.rules }}" _aws_ec2_autoscale_cluster_listeners_redirect: Protocol: HTTP @@ -370,7 +370,7 @@ - CertificateArn: "{{ _ssl_certificate_ARN }}" DefaultActions: - Type: forward - TargetGroupArn: "{{ _aws_ec2_target_group_created.target_group_arn }}" + TargetGroupName: "{{ aws_ec2_autoscale_cluster.name }}" Rules: "{{ aws_ec2_autoscale_cluster.listeners_https.rules }}" when: aws_ec2_autoscale_cluster.create_elb @@ -411,10 +411,6 @@ - aws_ec2_autoscale_cluster.alb_security_groups | length > 0 - aws_ec2_autoscale_cluster.create_elb -- name: Debug listeners - ansible.builtin.debug: - var: _aws_ec2_autoscale_cluster_listeners - - name: Create the ALB. amazon.aws.elb_application_lb: name: "{{ aws_ec2_autoscale_cluster.name }}"