Introduction to the Ansible SyncPack

Download this manual as a PDF file 

This section describes how you can use the "Ansible" SyncPack to sync Skylar One events for Ansible Towers and Ansible CLI. The integration is unidirectional, from Ansible to Skylar One.

This SyncPack uses the "Ansible Automation" PowerPack.

What Can I Do with this SyncPack?

The "Ansible" SyncPack lets you sync playbook and event data from Ansible Tower and/or Ansible CLI to a Skylar One event. You can automate Ansible orchestration and provisioning playbooks, and you can clear a Skylar One event when an Ansible Tower or Ansible CLI is successfully provisioned.

This SyncPack includes workflow automations that trigger playbooks in Ansible Tower and/or Ansible CLI. Details of the playbook execution are synchronized back to the Skylar One event for data accuracy and consistency across teams.

This SyncPack includes the following applications:

  • Ansible Tower Job Status Update. This application updates an associated Skylar One event with Ansible Tower job information.
  • Call Playbook from Ansible CLI. This application triggers a request to Ansible CLI to provision for data and to access devices.
  • Call Playbook from Ansible Tower. This application triggers a request to Ansible Tower to provision for data and to access devices.
  • Clear Skylar One Events. This application clears Skylar One events when an Ansible Tower or Ansible CLI is successfully provisioned.

Contents of this SyncPack

This section lists the contents of the "Ansible" SyncPack.

PowerFlow Applications

  • Ansible Tower Job Status Update. This application updates an associated Skylar One event with Ansible Tower job information.
  • Call Playbook from Ansible CLI. This application triggers a request to Ansible CLI to provision for data and to access devices.
  • Call Playbook from Ansible Tower. This application triggers a request to Ansible Tower to provision for data and to access devices.
  • Clear Skylar One Events. This application clears Skylar One events when an Ansible Tower or Ansible CLI is successfully provisioned.

For more information about how to configure these applications, see Configuring Applications for the Ansible SyncPack.

Configuration Object

  • Sample Ansible Configuration. This configuration object can be used as a template after the SyncPack is installed on the PowerFlow system. The configuration object includes the following:
  • Details for connecting to Skylar One, including the host, username, and password.
  • Details for connecting to Ansible, including the username, password, URL, host name, and host name status.
  • Details for connecting to Ansible Tower, including the template ID, credential ID, and inventory ID.
  • Details for authentication, including SSH host name, username, password, RSA key, and PEM status.
  • Details for connecting to Ansible Playbook.
  • Details for populating Skylar One events.

Steps

The following steps are included in this SyncPack:

  • Ansible Tower Provision
  • Update Ansible Job Status to Skylar One
  • Clear Skylar One Event
  • Create External Ticket
  • Create Ansible Host
  • Call Ansible Playbook
  • Get Ansible Job Status
  • Get Skylar One Events
  • Post Updates to Skylar One
  • Real Job ID
  • Update Ansible Job Details to Skylar One