/ansible-vmware-windows

Build a Windows VM on VMWare ESXi, vCenter or vSphere from scratch 100% automated with Ansible.

Primary LanguagePowerShell

How to build a Windows VM from scratch with Ansible

  • Vmware ESXi
  • vSphere
  • vCenter

Installing

ansible-galaxy collection install community.vmware
ansible-galaxy collection install --force git+https://github.com/helviojunior/ansible-vmware-floppy.git

Install pyvmomi lib from my repo, because I made a fix aboult Free ESXi licence limitation

python3 -m pip install git+https://github.com/helviojunior/pyvmomi

Executing

ip="10.10.10.10"; # Vmware server IP
ansible-playbook -i $ip, deploy_windows.yml

Common error

objc[7453]: +[__NSCFConstantString initialize] may have been in progress in another thread when fork() was called.
objc[7453]: +[__NSCFConstantString initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug.

To solve this error run

export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES

Inspiration