Integrate your ServiceNow instance and Ansible Tower to automate Ansible spoke actions. For example, you can create a flow that retrieves a list of credentials from the Ansible Tower environment.

Before you begin

  • Request an Integration Hub subscription.
  • Activate the Ansible spoke.
  • Role required: admin.

Create an OAuth application in the Ansible Tower

Create an OAuth application on the Ansible Tower to have the connection requests from your ServiceNow instance authenticated by the OAuth application.

Before you begin

Role required: admin

Ensure that you have the administrator's access to the Ansible Tower instance.

Procedure

  1. Log in to the Ansible Tower application instance.
  2. On the left panel, under Administration, select Applications.
    Applications link on Ansible Automation Platform.
  3. On the Applications page, select Add.
    Add button for adding an application.
  4. Fill the form.
  5. Select Save.
  6. Copy the Client ID and Client Secret and store them at a secure place.

    You've created the OAuth application.

    OAuth application created.

Set up the Ansible spoke connection record

Create the connection record that contains the information that enables your ServiceNow instance to send an authentication request to the Ansible Tower instance and get an OAuth token.

Before you begin

Role required: admin

Ensure you have set up an OAuth application on the Ansible Tower instance.

Procedure

  1. Navigate to All > Process Automation > Flow Designer.
  2. Select Connections.
  3. Turn on the Outbound tab.
  4. In the Search all connections field, enter AnsibleTowerAlias.
  5. On the AnsibleTowerAlias card, select View Details.
  6. Select Configure.
  7. Fill the form.
  8. Select Configure and Get OAuth Token.
    The OAuth application authenticates the connection request and provides a temporary token to access the Ansible Tower instance.