Skip to content

Commit

Permalink
Move ec2_vol_info example from ec2_vol_info_module.rst to ec2_vol_inf…
Browse files Browse the repository at this point in the history
…o.py (ansible-collections#568)

Move ec2_vol_info example from ec2_vol_info_module.rst to ec2_vol_info.py

SUMMARY
ansible-collections#561 put it in the wrong place and release prep overwrites it.
ISSUE TYPE

Docs Pull Request

COMPONENT NAME
ec2_vol_info
ADDITIONAL INFORMATION

Reviewed-by: Felix Fontein <None>
Reviewed-by: None <None>
  • Loading branch information
tremble authored Nov 12, 2021
1 parent f299133 commit ff9a18b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions plugins/modules/ec2_vol_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,15 @@
filters:
attachment.status: attached
# Gather information about all volumes related to an EC2 Instance
# register information to `volumes` variable
# Replaces functionality of `amazon.aws.ec2_vol` - `state: list`
- name: get volume(s) info from EC2 Instance
amazon.aws.ec2_vol_info:
filters:
attachment.instance-id: "i-000111222333"
register: volumes
'''

RETURN = '''
Expand Down

0 comments on commit ff9a18b

Please sign in to comment.