Skip to content

Commit

Permalink
replace deprecated ec2_asg_facts
Browse files Browse the repository at this point in the history
  • Loading branch information
Szpadel committed Oct 27, 2023
1 parent a6b332e commit c6407b9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion site.maintenance.aws-remove-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
- name: Remove Auto Scaling Groups and App servers
block:
- name: Get Auto Scaling Groups
ec2_asg_facts:
community.aws.ec2_asg_info:
region: "{{ aws_region }}"
tags: "{{ aws_tags_base }}"
register: _aws_asgs
Expand Down
4 changes: 2 additions & 2 deletions site.maintenance.aws-start.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
when: start_asg
block:
- name: Get Auto Scaling Groups for App
ec2_asg_facts:
community.aws.ec2_asg_info:
region: "{{ aws_region }}"
tags: "{{ aws_tags_base | combine(aws_tags_node_app) }}"
register: start_asg_facts
Expand All @@ -46,7 +46,7 @@
when: start_asg and (aws_extra_app_asg_enable or magento_aws_ondemand_import_instance_enable)
block:
- name: Get Auto Scaling Groups for Extra App
ec2_asg_facts:
community.aws.ec2_asg_info:
region: "{{ aws_region }}"
tags: "{{ aws_tags_base | combine(aws_tags_node_extra_app) }}"
register: start_asg_facts
Expand Down
2 changes: 1 addition & 1 deletion site.maintenance.aws-stop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
when: stop_asg
block:
- name: Get App Node Auto Scaling Groups
ec2_asg_facts:
community.aws.ec2_asg_info:
region: "{{ aws_region }}"
tags: "{{ aws_tags_base | combine(aws_tags_role_app) }}"
register: stop_asg_facts
Expand Down

0 comments on commit c6407b9

Please sign in to comment.