Deploying vCenter using Ansible



This is my first published video on Youtube ! Hope you will enjoy it

In this video we will deploy a vCenter appliance on an ESXi host automatically using Ansible.

The main playbook will invoke and run 4 other playbooks:
– Deploy VCSA
– Basic VCSA configuration (Create Datacenters, Clusters and Folders.
– Add hosts (Add hosts to vCenter – License)
– Add an NFS datastore to 2 ESXi hosts in vCenter.

Github code: https://github.com/vPackets/ANSIBLE-vSphere-VCSA-OVA-Deploy
Twitter: https://twitter.com/vpackets

source

8 thoughts on “Deploying vCenter using Ansible”
  1. Why not use Ansible vault, or Hashicorp vault to store your parameters instead of typing them blindly into shell? All you need to provide is either a password/vault-id or a time limited token at playbook run.

  2. Thanks for the script, i tried the script all working fine but adminstrator@vsphere.local account password not updating, i got error on vm console "VMware vcenter server appliance 7.0.0.1400[FAILED] Failed to start script. see systemctl status vaos.services for details"
    remaining scripts are run and able to ping my VC and access HTML5 console, but unable to login due to password issue.
    can you help me to fix this issue. Thanks in advance.

  3. Hi, is there a reason why VMWare's Ansible modules does not support the latest python 3.X? Does that mean Ansible dropping the support for VMWare or VMWare not interested in Ansible anymore?

  4. Thanks for that great Video! I tried to use your code, however i am stuck on connecting in the first place to the esxi host. Have you ever seen this before ?

    task path: /home/mzulmin/lab-images/ANSIBLE-vSphere-VCSA-OVA-Deploy/playbooks/01-deploy-vcsa.yml:8

    "msg": "Unknown error while connecting to vCenter or ESXi API at 10.0.0.200:443 : [Errno 0] Error"
    }

    PLAY RECAP *********************************************************************************************************************************************************************************************************************************************************************
    localhost : ok=1 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0

    I do use your forked devops docker image and VMware-vCenter-Server-Appliance-7.0.0.10300-16189094_OVF10.ova on an 7.0u2 host..

    Checked a few documentations, but i cannot get that one fixed 🙁
    Any help would be really appreciated!

    Thanks and best

Leave a Reply

Your email address will not be published.

Captcha loading...