Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

User can now select an Ansible playbook to execute in sequence in a pipeline step.

This documentation covers how to create an Ansible tool in Tool Registry and then how to set up an Ansible pipeline. Playbooks created have already been created in Ansible.

Register an Ansible tool in Opsera’s Tool Registry:

...

Ansible server will execute the playbook file located within an SCM repository. Prior to this setup, Ansible tool must be successfully configured and registered in Opsera’s Tool Registry.

Workflow

...

In this section:

  • Register Ansible Tool

  • Configure Ansible Tool

  • Set up Ansible in Pipeline

Register Ansible Tool

  1. Login to Opsera, and navigate Products >Tool Registry.

  2. Click + New Tool.

  3. Locate the Ansible tool and click Select Toolbutton. This will set the Tool tool Identifier to Ansible.

    Image Removed

  4. Fill out In the Create New Tool form, enter the required tool details and click the Createbutton to save the new tool.

Configure

...

Ansible

...

Tool

  1. Navigate to Tool Registry and open the newly saved Ansible tool to view the Tool Details.

  2. Navigate to the Click Connections tab to add configuration details.

  3. Provide values from Ansible for the following fields:

    Image Removed
  • Host Name

  • Server Port

  • User Name

  • Ansible Public Key Path

...

4. Click Save button.

This connects the tool to your existing playbooks in SCM and will now allow them to execute in your pipeline. Follow the next steps for pipeline configuration.

Ansible Pipeline Configuration

...

Configure Ansible Pipeline

  1. Once the pipeline step has been created with Ansible as the Tool Identifier, click on the gear icon in pipeline step to configure.

  2. Provide values for the following fields:

...