This repository was archived by the owner on Oct 7, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
roles/aws/aws_ec2_autoscale_cluster/tasks Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 675
675
when : aws_ec2_autoscale_cluster.acm.extra_domains | length > 0
676
676
677
677
- name : Handle CloudFront.
678
- when : aws_ec2_autoscale_cluster.cloudfront.create_distribution
678
+ when :
679
+ - aws_ec2_autoscale_cluster.cloudfront.create_distribution
680
+ - aws_ec2_autoscale_cluster.create_elb
679
681
block :
680
682
- name : Create SSL certificate for CloudFront.
681
683
ansible.builtin.include_role :
706
708
- name : Initialise a list of CloudFront aliases with main domain name.
707
709
ansible.builtin.set_fact :
708
710
_aws_ec2_autoscale_cluster_cloudfront_aliases : " {{ [_domain_name] }}"
709
- when :
710
- - aws_ec2_autoscale_cluster.create_elb
711
711
712
712
- name : Add extra_domains so we can set up additional CloudFront aliases.
713
713
ansible.builtin.set_fact :
714
714
_aws_ec2_autoscale_cluster_cloudfront_aliases : " {{ _aws_ec2_autoscale_cluster_cloudfront_aliases + [item.domain] }}"
715
715
loop : " {{ aws_ec2_autoscale_cluster.acm.extra_domains }}"
716
716
when :
717
717
- aws_ec2_autoscale_cluster.acm.extra_domains|length > 0
718
- - aws_ec2_autoscale_cluster.create_elb
719
718
720
719
- name : Create a CloudFront distribution.
721
720
ansible.builtin.include_role :
732
731
default_cache_behavior :
733
732
target_origin_id : " ELB-{{ aws_ec2_autoscale_cluster.name }}"
734
733
when :
735
- - aws_ec2_autoscale_cluster.create_elb
736
734
- _cf_certificate_ARN|length > 1
737
735
738
736
# @TODO - we can use the aws_acm_obsolete_certificate_arn variable to tidy up previous ACM certs, if it is defined.
You can’t perform that action at this time.
0 commit comments