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:
- Go to administration Tab
- Click on Property Definitions
- Click +New
Enter the following:
- Enter a name
- Enter the same for label
- Enter a discription
- Select String
- Select Yes
- Choose Dropdown
- 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
FYI
I am pulling the Playbooks from here https://github.com/vmtocloud/ansible-examples
Pingback: vRA Ansible Integration 3 ways – VMtoCloud.com
Hello,
I did import the Blueprint successfully but when I select it form the items, the Playbook dropdown is not populated. Any hints?