The vRA Guest Agent Ansible Integration

In this guide I will show you to use a Guest Agent Blueprint to integrate Ansible Playbooks. In this example I am using what I describe as Ansible Standalone. Meaning, there is no Ansible Server that is pusing the playbook to this server. I simply install ansible, pull the playbook from my GitHub repository and run ansible locally.

Pre-Reqs

  • Working installation of vRealize Automation 7
  • Cloud Client 4 installed from here
  • Download the Ansible_Examples_Gugent Blueprint here
  • Working vRealize Automation Agent Blueprint – See my guide here
  • SE Linux enabled in Passive Mode in the above template see here for instructions
  • Internet access from the provisioned VM

Credits:

I want to thank Sid Simith @vmmeup over at Dailyhypervisor for the help with this one.

Use cloud client to upload the blueprint to your vRA installation

See my guide here on importing blueprints into vRA here

Create your Playbooks_EL7 drop down list:

  1. Go to administration Tab
  2. Click on Property Definitions
  3. Click +New
    Property Definition

Enter the following:

  1. Enter a name
  2. Enter the same for label
  3. Enter a discription
  4. Select String
  5. Select Yes
  6. Choose Dropdown
  7. Click New and create the selections

Make sure you updated the blueprint with your template settings

Go to the design tab, blueprints and edit the Ansible_Examples_SC blueprint

Entitle the catalog item and fire off a new request

FYI

I am pulling the Playbooks from here https://github.com/vmtocloud/ansible-examples

 

Remember sharing is caring!

2 Replies to “The vRA Guest Agent Ansible Integration”

  1. Pingback: vRA Ansible Integration 3 ways – VMtoCloud.com

  2. Hello,

    I did import the Blueprint successfully but when I select it form the items, the Playbook dropdown is not populated. Any hints?

Leave a Reply

Your email address will not be published. Required fields are marked *

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.