Order an Ansible job template

  • Rversion finale: Australia
  • Mis à jour 12 mars 2026
  • 2 minutes de lecture
  • Use Cloud Services Catalog to order an Ansible job template called from the catalog item.

    Avant de commencer

    Role required: cloud_service_user

    Pourquoi et quand exécuter cette tâche

    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.

    Procédure

    1. Navigate to Employee Center > Cloud Services > Integrations > CSC Ansible Automation.
      Figure 1. Ansible Job template deployment form

      Ansible Job template deployment form.
      Tableau 1. Ansible Template form fields
      Fields Description
      UserGroup User group that is assigned to the user.
      Provision Provisioning 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.
      Conseil :

      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 Location Service account that is associated logical datacenter (LDC) for Discovery.
      Extra Variables Extra variables that you can modify even if the values are automatically filled in and masked.
    2. 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.
    3. Select the field values from the list to be updated in the pipeline variables.
      These entries are considered for the current order only.
      Remarque :
      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.

    Que faire ensuite

    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.