Control-M for Ansible AWX
Ansible AWX jobs enable you to manage Ansible playbooks, inventories, and job scheduling.
Control-M for Ansible AWX enables you to do the following:
- Execute any of the following Ansible AWX job actions:
- Launch job templates.
- Launch workflow templates.
- Synchronize inventory sources
- Synchronize projects.
- Manage Ansible AWX credentials in a secure connection profile.
- Connect to any Ansible AWX endpoint.
- Integrate Ansible AWX jobs with other Control-M jobs into a single scheduling environment.
- Introduce all Control-M capabilities to Control-M for Ansible AWX, including advanced scheduling criteria, complex dependencies, Resource Pools, Lock Resources, and variables.
- Monitor the job status, results, and output of Ansible AWX jobs.
- Attach an SLA job to the Ansible AWX jobs.
Setting up Control-M for Ansible AWX
This procedure describes how to install the Ansible AWX plug-in, create a connection profile, and define an Ansible AWX job in Helix Control-M and Automation API.
Before you Begin
- Verify that Automation API is installed, as described in Setting up the API.
- Verify that Agent version 9.0.21.200 or later is installed.
Begin
- On the Agent host, set the Java environment variable by running one of the following commands through a command line:
- Linux:
- Bourne shell/bash: export BMC_INST_JAVA_HOME=<java_11_directory>
- csh/tcsh: setenv BMC_INST_JAVA_HOME <java_11_directory>
- Windows: set BMC_INST_JAVA_HOME="<java_11_directory>"
- Linux:
- Run one of the following API commands:
- For a fresh installation, use the provision image command:
- Linux: ctm provision image Ansible_AWX_plugin.Linux
- Windows: ctm provision image Ansible_AWX_plugin.Windows
- For an upgrade, use the following command:
ctm provision agent::update
- For a fresh installation, use the provision image command:
- Create an Ansible AWX connection profile in Helix Control-M or Automation API, as follows:
- Helix Control-M: Creating a Centralized Connection Profile with Ansible AWX Connection Profile Parameters
- Automation API: ConnectionProfile:Ansible AWX
- Define an Ansible AWX job in Helix Control-M or Automation API, as follows:
- Helix Control-M: Creating a Job with Ansible AWX Job parameters
- Automation API: Job:Ansible AWX
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*