File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 2
2
# If we are operating on an AWS ASG then resume autoscaling.
3
3
- name : Enable all autoscale processes on ASG.
4
4
ansible.builtin.command : >
5
- aws autoscaling resume-processes --auto-scaling-group-name {{ aws_asg.name }} --region {{ aws_asg.region }}
5
+ aws --profile {{ boto_profile }} autoscaling resume-processes --auto-scaling-group-name {{ aws_asg.name }} --region {{ aws_asg.region }}
6
6
delegate_to : localhost
7
7
when :
8
8
- aws_asg.name is defined
Original file line number Diff line number Diff line change 158
158
# @TODO - the autoscaling_group module can do this - https://docs.ansible.com/ansible/latest/collections/amazon/aws/autoscaling_group_module.html
159
159
- name : Disable autoscale processes on ASG.
160
160
ansible.builtin.command : >
161
- aws autoscaling suspend-processes --auto-scaling-group-name {{ aws_asg.name }} --scaling-processes {{ aws_asg.suspend_processes }} --region {{ aws_asg.region }}
161
+ aws --profile {{ boto_profile }} autoscaling suspend-processes --auto-scaling-group-name {{ aws_asg.name }} --scaling-processes {{ aws_asg.suspend_processes }} --region {{ aws_asg.region }}
162
162
delegate_to : localhost
163
163
when :
164
164
- aws_asg.name is defined
You can’t perform that action at this time.
0 commit comments