Skip to content

Commit

Permalink
Update aws_ec2 documentation for the use_ssm_inventory option (#1586)
Browse files Browse the repository at this point in the history
Update aws_ec2 documentation for the use_ssm_inventory option

SUMMARY

Update aws_ec2 documentation for the use_ssm_inventory option
Might fix #1461

ISSUE TYPE


Docs Pull Request

COMPONENT NAME

aws_ec2

Reviewed-by: Mark Chappell
Reviewed-by: Jill R
  • Loading branch information
alinabuzachis authored Jun 1, 2023
1 parent 4d74baf commit 463d588
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
trivial:
- "Update the ``aws_ec2`` inventory plugins documentation for the ``use_ssm_inventory`` option."
4 changes: 3 additions & 1 deletion docs/docsite/rst/aws_ec2_guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,9 @@ Now the output of ``ansible-inventory -i demo.aws_ec2.yml --list``:
``use_ssm_inventory``
---------------------

``use_ssm_inventory: True`` will include SSM inventory variables into hostvars for ssm-configured instances.
``use_ssm_inventory: True`` enables fetching additional EC2 instance information from the AWS Systems Manager (SSM) inventory service into hostvars. By leveraging the SSM inventory data, the ``use_ssm_inventory`` option provides additional details and attributes about the EC2 instances in your inventory.
These details can include operating system information, installed software, network configurations, and custom inventory attributes defined in SSM.


``cache``
---------
Expand Down
5 changes: 4 additions & 1 deletion plugins/inventory/aws_ec2.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,10 @@
version_added: 3.1.0
use_ssm_inventory:
description:
- Add SSM inventory information into hostvars.
- Enables fetching additional EC2 instance information from the AWS Systems Manager (SSM) inventory service into hostvars.
- By leveraging the SSM inventory data, the I(use_ssm_inventory) option provides additional details and attributes
about the EC2 instances in your inventory. These details can include operating system information, installed software,
network configurations, and custom inventory attributes defined in SSM.
type: bool
default: False
version_added: 6.0.0
Expand Down

0 comments on commit 463d588

Please sign in to comment.