Ansible
Integrate Ansible with Cloudaware to exchange inventory and use CMDB as a dynamic classifier for automation.
info
- Audience: Cloudaware administrators, platform/automation engineers
- Outcome: The Ansible integration is configured, and facts (for AWS EC2) can be used to align inventory and automation targeting
Capabilities
The integration enables:
- Importing Ansible facts or inventories into the CMDB
- Selecting Ansible automation targets based on CMDB query results
- Reporting Ansible automation coverage and configuration drift across discovered assets
Prerequisites
Before you begin, make sure you have:
- Access to a Cloudaware account.
- A user with access to the Admin Console and permissions to manage cloud accounts, organizations, and integrations (Cloudaware Administrator).
- AWS account is connected to Cloudaware
- Ansible Controller/Tower/AWX access
- API token or service credentials (as applicable)
Add Ansible Facts Integration Details
- In Cloudaware, go to Admin.
- Find Ansible Facts, then click OPEN WIZARD.
- Enter the following values:
- AWS Account: Select the AWS account from the drop-down list.
- Bucket Name: Enter the name of the S3 bucket that stores the uploaded EC2 instance facts.
- Bucket Region: Specify the AWS region where the S3 bucket resides.
- File Prefix: Enter the path prefix within the bucket for Cloudaware to read the uploaded facts.
- Click SAVE.
- Confirm that the integration status indicator is green.
View Ansible Facts on AWS in CMDB
- Open an AWS object record to view the relevant section (e.g. AWS EC2 Instance Facts (Ansible Fact)) in the RELATED CIs tab.
- Build a custom list view for the AWS object to view updates.
- Build a report on the AWS object.
Ansible-Specific Fields in CMDB
| Object | Field (Type) |
|---|---|
| AWS EC2 Instance | Last Ansible Fact Update (Date/Time) |
Troubleshooting
If Ansible facts are not visible on AWS EC2 instances in Cloudaware, first confirm that the AWS account, S3 bucket name, bucket region, and file prefix are configured correctly. Then verify that the expected fact files are available in the bucket and allow time for Cloudaware to process the imported data.
Still stuck? Contact Cloudaware Support at support@cloudaware.com with the integration name and a brief description of the issue.
Reconfigure or Remove the Integration
warning
To update bucket settings or rotate credentials, edit the existing integration instead of deleting and re-creating it.
Update the Integration Details
- Go to Admin.
- Select Ansible Facts.
- Select the specific integration.
- Open the three-dot menu (⋮), then click Edit.
- Update the required fields.
- Click Save.
Remove the Integration from Cloudaware
- Go to Admin.
- Select Ansible Facts.
- Select the specific integration.
- Open the three-dot menu (⋮), then click Delete.
- Confirm the deletion if prompted.
Security Notes
- Use read-only scope for discovery-only scenarios.
- Rotate tokens periodically.