Using Ansible and Python in ESXi

This page summarizes the projects mentioned and recommended in the original post on reddit.com/r/sysadmin

Our great sponsors
  • SonarLint - Clean code begins in your IDE with SonarLint
  • Scout APM - Less time debugging, more time building
  • SaaSHub - Software Alternatives and Reviews
  • vsphere-automation-sdk-python

    Python samples, language bindings, and API reference documentation for vSphere, VMC, and NSX-T using the VMware REST API

    Use a linux server to set things up for running the playbooks pip install pyvnomi pip install --upgrade git+https://github.com/vmware/vsphere-automation-sdk-python.git ansible-galaxy collection install community.vmware Make sure you have vcenter setup as this is where the magic happens (where the API and all the other capabilities exist) and you should be running at least vCenter Essentials Kit or Standard with a separate license for vCenter. The free version is kind of watered down and does not enable the APIs for full automation out of the box. You would need to use something similar to pexpect in order to orchestrate ssh commands that may or may not work in the free version.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts