How to build Ansible provision server for VMware ?


Ansible is a great automation tool for infrastructure as a code and using ansible modules to automate VMware platform is really easy.

In order to start the automation, need to configure a provision server where ansible and some of its dependencies need to be installed.

A provision server can be on any operating system. But in this document we have focused on the following two opensource operating systems:

  • Ubuntu 20.04 LTS
  • CentOS 8.x 

Following steps need to be performed to configure Ubuntu 20.04 LTS as a provision server:

a. Install python3-pip:

    # apt-get  install  python3-pip  -y

  Upgrade pip3 to the latest version:

  # pip3  install  --upgrade  pip

b. Install & check latest ansible  version:

     # pip3 install ansible
  # pip3 show ansible
    
c.  Install & check pyVmomi:

     # pip3 install pyvmomi
  # pip3 show pyvmomi



Following steps need to be performed to configure CentOS 8.x as a provision server:

a. Install epel-release rpm:

    # yum  install  epel-release  -y

b. Install python-pip rpm:

    # yum  install  python3-pip  -y

  Upgrade pip3 to the latest version:

  # pip3  install  --upgrade  pip 

c. Install & check ansible version:

     # pip3 install ansible
  # pip3 show ansible
    
d.  Install & check pyVmomi:

     # pip3 install pyvmomi
  # pip3 show pyvmomi



Now both the servers are ready to work as a provision server to automate VMware platform using Ansible. 

Comments

Popular posts from this blog

VNC Configuration using Ansible in CentOS 7

How to build Ubuntu Server 20.04 LTS OVA with vAPP Properties ?

LVM Configuration using Ansible in CentOS 7