Ansiblizing your VMware REST API
summary
Demonstrates using Ansible to call VMware vSphere REST endpoints with concrete playbooks: GET datacenter info that parses JSON and checks HTTP 200, a POST that create tag via POST and returns 201, and a delete flow using REST DELETE. Shows using Ansible uri and native vSphere modules, handling username/password and token auth, extracting IDs from responses, and reusing them in subsequent tasks. Includes examples for content library items and compares native modules vs generic REST calls.
AI-written summary · about
chapters (13)
- 0:00Introduction to talk
- 1:50What is Ansible
- 3:59VMware REST API basics
- 6:35VMware REST API methods
- 9:37First example with Ansible
- 15:39Second example creating tag
- 21:32Advantages of Ansible models
- 27:49Disadvantages and solutions
- 31:17Connection plugin demo
- 34:10VMware automation with Ansible
- 39:28Future plans and roadmap
- 42:27Conclusion and resources
- 43:59Q&A and thanks
