mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-02 16:53:11 +00:00
ec2_instance_facts.py: documentation: add example (#49010)
Add an example of using multiple states for instance-state-name in filters. Not obvious how it works until you try.
This commit is contained in:
committed by
John R Barker
parent
965dec6a9a
commit
0b380b09bf
@@ -60,6 +60,12 @@ EXAMPLES = '''
|
||||
- ec2_instance_facts:
|
||||
filters:
|
||||
"tag:Name": Example
|
||||
|
||||
# Gather facts about any instance in states "shutting-down", "stopping", "stopped"
|
||||
- ec2_instance_facts:
|
||||
filters:
|
||||
instance-state-name: [ "shutting-down", "stopping", "stopped" ]
|
||||
|
||||
'''
|
||||
|
||||
RETURN = '''
|
||||
|
||||
Reference in New Issue
Block a user