Set up Ansible as a Day 1 task

  • Release version: Australia
  • Updated March 12, 2026
  • 1 minute to read
  • Set up the Ansible console as a Day 1 task before you run Discovery and deploy a job template via a ServiceNow catalog item by using the Cloud Services Catalog application.

    Before you begin

    Set the deploymentID on the extra variables for Ansible job templates.

    Select the Prompt on launch option next to the variables section in the template. If you don't do this action, you can't update or override the default extra_vars that is defined with the values from the catalog order form, while you are launching the template.

    Tag all resources with the deploymentID key to enable Discovery after provisioning.

    Role required: admin

    Procedure

    1. Save the extra variables in a JSON format locally, to discover and update Configuration Management Database (CMDB).
    2. Create Ansible tower credentials to be used in Ansible Discovery.
    3. Allow the extra variables and job templates to be overridden.
      The default Ansible job template must be overridden for the pipeline to work with a Cloud Services Catalog Ansible automation catalog item.