Skip to main content
Skip table of contents

Ansible As A Source To CMDB

The Ansible server contains valuable data about the current configuration state at the operating system level. In addition, Ansible can be configured to retrieve custom, application-specific facts. This guide explains how to add Ansible Facts integration to Cloudaware.

Ansible variables

Ansible collects data from hosts and stores it as Ansible variables. These variables can be loaded into CMDB through Cloudaware’s Ansible integration. Cloudaware supports native Ansible variables, custom variables, factor_*, and ohai_* variables. 

Benefits of Ansible data in CMDB

  • Detect instances not connected to Ansible

  • Track the last successful Ansible execution on a host

  • Enrich CMDB with OS and application-level data

  • Run reports on variables

  • Monitor changes in variables

  • Trigger workflows and approval processes based on variable values

  • Convert facts into instance attributes

Add an Ansible Facts integration

Prerequisites

Upload AWS* EC2 instance facts to AWS S3 bucket accessible by Cloudaware.

*Although Ansible supports multi-cloud, the Cloudaware integration currently supports only AWS.

  1. Log in to Cloudaware → Admin.

    Ansible Facts - admin.png

  2. Find Ansible Facts in DevOps integrations. Click +ADD.

    Ansible Facts - add integration.png

  3. Fill out the form:

    Ansible Facts - integration form.png

    WHERE
    AWS Account – select one from the drop-down list
    Bucket Name – 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 – the path prefix within the bucket for Cloudaware to read the uploaded facts

    Click SAVE.

  4. A green light in the ‘Status’ column indicates successful configuration. If the light is red, contact support@cloudaware.com

    Ansible Facts - integration status.png

  5. Facts are displayed on AWS EC2 instances in the Cloudaware CMDB.

Alternatively, install the Ansible-to-S3 adapter on the Ansible server. Instructions are available here

List of Ansible-specific fields in CMDB

Object

Fields

AWS EC2 Instance

Last Ansible Fact Update (Date/Time)

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.