Skip to content

Define your deployment architecture in YAML using host variables and build VMs in VMware with Ansible and Kickstart

Notifications You must be signed in to change notification settings

Sapphire-Health/ansible-vmware-build

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dependencies

Install Ansible

The example below is for RHEL/CentOS 8

sudo dnf -y install python3-pip
sudo pip3 install --upgrade pip
pip3 install ansible --user

Clone Repo

git clone https://github.com/Sapphire-Health/ansible-vmware-build.git
cd ansible_vmware_build

Install Dependencies

ansible-galaxy collection install -r collections/requirements.yml
yum install python3-pyvmomi

Set environment variables

In Ansible Tower these values are configured using a "VMware vCenter" credential resource.

export VMWARE_HOST=vcenterhostname.fqdn.com
export VMWARE_USER=domain\\username
export VMWARE_PASSWORD=password

Update variables in the hosts.yml file

vi hosts.yml

Run the playbook

ansible-playbook -i hosts.yml site.yml

About

Define your deployment architecture in YAML using host variables and build VMs in VMware with Ansible and Kickstart

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published