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
…#1590)

[PR #1586/463d5880 backport][stable-6] Update aws_ec2 documentation for the use_ssm_inventory option

This is a backport of PR #1586 as merged into main (463d588).
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: Alina Buzachis
  • Loading branch information
patchback[bot] authored Jun 5, 2023
1 parent 58d381c commit 5ff9190
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 @@ -138,7 +138,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 5ff9190

Please sign in to comment.