VM Builds Provisioning to Incorrect Inventory in Ansible Automation Platform Integration through Aria Automation
search cancel

VM Builds Provisioning to Incorrect Inventory in Ansible Automation Platform Integration through Aria Automation

book

Article ID: 387799

calendar_today

Updated On:

Products

VMware Aria Suite

Issue/Introduction

You attempt to deploy a system using Ansible, but in Aria Automation 8.x with Ansible Automation Platform (AAP) integration, it can be observed that the virtual machines provision to the wrong inventory instead of the intended one.

Environment

Aria Automation 8.x 

Resolution

To resolve the issue, Modify the Ansible workflow to reference the correct inventory. Since Aria Automation templates don’t allow direct updates to inventory assignments, adjusting the workflow is necessary.

Cloud_Ansible_Tower_1:

    type: Cloud.Ansible.Tower

    properties:

      host: <HOST>

      account: <ACCOUNT>

      templates:

        provision:

          - name: <NAME>

            type: <JOB or WORKFLOW>

      hostName: <HOSTNAME>

      maxJobRetries: <MAX-JOB-RETRIES>

      hostVariables:

        ansible_host: <ANSIBLE-HOSTNAME>

 

 

Note: Aria Automation templates support only two provisioning types: Job and Workflow.