-
Notifications
You must be signed in to change notification settings - Fork 341
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix ec2_instance 'state' processing when exact_count is used (#1659)
SUMMARY Fixes (ie adds) 'state' processing for ec2_instance when 'exact_count' is used rather than 'instance_ids' Note this only has effect when the exact_count is the same as the number of already existing, matching instances. In other words, it (still) has no effect when instances are either added or terminated as a result of exact_count. This is probably OK, as those other cases already have set target states (ie running or terminated respectively). But for the cases of managing the state of an existing group of instances, this adds that ability. ISSUE TYPE Bugfix Pull Request COMPONENT NAME ec2_instance ADDITIONAL INFORMATION Currently, given an ec2_instance call where exact_count == existing instance count, any specification of 'state' has no effect. Reviewed-by: Mark Chappell Reviewed-by: Alina Buzachis
- Loading branch information
1 parent
c535e63
commit 26d7243
Showing
3 changed files
with
65 additions
and
3 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
changelogs/fragments/1659-ec2_instance-ensure-state-exact_count.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
bugfixes: | ||
- ec2_instance - fix state processing when exact_count is used (https://github.com/ansible-collections/amazon.aws/pull/1659). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters