1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02: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:
Selivanov Pavel 2018-11-28 22:42:38 +03:00 committed by John R Barker
parent 965dec6a9a
commit 0b380b09bf

View file

@ -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 = '''