Moogsoft Docs

Ansible Tower

To integrate with Red Hat Ansible Tower, configure a Webhook to send Ansible Tower notifications to Moogsoft AIOps.

See the Ansible Tower documentation for details on its components.

Before You Begin

The Ansible Tower integration has been validated with Ansible Tower v. 3.0 and v. 3.1. Before you start to set up your integration, ensure you have met the following requirements:

  • You have an Ansible Tower account with administrator privileges.
  • Ansible Tower can make requests to external endpoints over port 443.

Configure the Ansible Tower Integration

Configure the Ansible Tower integration in Moogsoft AIOps as follows:

  1. Navigate to the Integrations tab.
  2. Click Ansible Tower in the Monitoring section.
  3. Follow the instructions to create an integration name.

Configure Ansible Tower

Log in to Ansible Tower to configure a notification template to send event data to your system. For more help, see the Ansible Tower documentation .

  1. Create a new notification template under 'Notifications' in Settings.
    Configure the template as follows:

    Field Value
    Name Event Webhook
    Description Event notifications
    Organization Default
    Type Webhook
    Target URL

    <your Ansible Tower integration URL>

    For example: https://example.moogsoftaiops.com/events/ansibletower_ansibletower1

    User ID Username generated in the Moogsoft AIOps UI
    Password

    Password generated in the Moogsoft AIOps UI

  2. Encode the 'userid:password' in a Base64 encoder and enter the following under 'HTTP Headers':

    {
    	"Content-Type": "application/json",	
    	"Authorization": "Basic <base64 encoded credentials>"
    }
  3. Save the template. You can test the notification to verify if there are any issues.

  4. Connection the notification to a job template.

After you complete the configuration, Ansible Tower notifies Moogsoft AIOps when new events occur.