Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

Order an Ansible job template

Use Cloud Services Catalog to order an Ansible job template called from the catalog item.

Before you begin

Role required: cloud_service_user

About this task

You can use the Ansible Job template deployment form to call an Ansible job template and run it via a ServiceNow catalog item for deployment.

Procedure

  1. Navigate to Employee Center > Cloud Services > Integrations > CSC Ansible Automation.
Image omitted: ansible-template-form.png
Ansible Job template deployment form.
FieldsDescription
UserGroupUser group that is assigned to the user.
ProvisionProvisioning details. Select the Workload Config Provider and ApplicationProfile from the Ansible Tower.
Choose Service Account

Pipeline. For Amazon Web Services, the Location list is displayed when you select Service Account. The location is not required for Discovery in Microsoft Azure.Tip:

You can expose an extra variable that was saved in a JSON format at the Ansible tower location or region and use it in the template for provisioning. This extra variable is overridden by the value that you selected in the Location list. By using this extra variable, you ensure that provisioning and Discovery are at the same location.

These settings ensure that the correct resources that are related to the stack are populated in CMDB. You can run Discovery based on those settings.

Choose Cloud LocationService account that is associated logical datacenter \(LDC\) for Discovery.
Extra VariablesExtra variables that you can modify even if the values are automatically filled in and masked.
  1. Set up the identifying tags.

    The DeploymentID field is read-only and auto-generated for the order. The DeploymentID is assigned as a tag to all the provisioned resources if you added it as a tag in the Azure DevOps pipeline template of the stacks in the cloud. The DeploymentID is also assigned as a tag to the stack. If the pipeline has any of these three variables (Application, BusinessService or CostCenter), they are displayed in the General info in the Ansible Job Template form UI.

  2. Select the field values from the list to be updated in the pipeline variables.

    These entries are considered for the current order only.

    Note: You can do only the resource level actions on a provisioned stack because the stack level action is turned off. The previous stack is marked as obsolete if you run the pipeline again, although the resources remain in the cloud.

What to do next

Verify that a blueprint approval policy (CSC Content Approval Policy Ansible) is applied. This policy mandates that approval must be obtained from the Change management group before any provisioning can take place.

Parent Topic:Integrating Ansible with Cloud Services Catalog