Running VMware Orchestrator workflows from an Ansible playbook

March 19, 2018

Below is a sample of how to send REST API calls to VMware Orchestrator using the Ansible uri_module in a playbook. In this example, vRO input values are provided using an input file “input.json” rather than embedding the JSON in the playbook itself which is also acceptable. The zip file includes the playbook and input file that can be used as a template.

Zip located here at VMware Code Samples

Playbook: “vro-playbook-revertSnap.yaml”








Input File: “input.json”







Running the Ansible playbook:




vCenter task showing that the workflow has executed successfully against our VM.



From Ansible: “Docs » uri – Interacts with webservices”

Comments are closed.