mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Only inventory "running" EC2 instances. "stopped" is also a valid state and these should not be inventoried.
This commit is contained in:
@@ -274,7 +274,7 @@ class Ec2Inventory(object):
|
||||
addressable '''
|
||||
|
||||
# Only want running instances
|
||||
if instance.state == 'terminated':
|
||||
if instance.state != 'running':
|
||||
return
|
||||
|
||||
# Select the best destination address
|
||||
|
||||
Reference in New Issue
Block a user