Ansible playbook to Configure ESXi network settings and add to Vcenter cluster

 510 total views,  10 views today

Leave a Reply

Your email address will not be published.

Ansible playbook to Configure ESXi network settings and add host to Vcenter cluster

Ansible playbook to Configure ESXi network settings and add host to Vcenter cluster

 

Download playbook >> ConigureNewEsxiHost

Lets test it.

To create this playbook I use  below modules.

community.vmware.vmware_dns_config

Ansible documentation >> link

To install it use: ansible-galaxy collection install community.vmware.

To use it in a playbook, specify: community.vmware.vmware_dns_config.

 

community.vmware.vmware_host

Ansible documentation >> link

To install it use: ansible-galaxy collection install community.vmware.

To use it in a playbook, specify: community.vmware.vmware_host.

 

vmware_host_config_manager

Ansible documentation >> link

To install it use: ansible-galaxy collection install community.vmware.

To use it in a playbook, specify: community.vmware.vmware_host_config_manager.

 

community.vmware.vmware_host_service_manager

Ansible documentation >> link

To install it use: ansible-galaxy collection install community.vmware.

To use it in a playbook, specify: community.vmware.vmware_host_service_manager.

 

Lets test it.

Playbook view.

 

1.Copy or download playbook ConigureNewEsxiHost

 

2. Modify vars section.

 

3. Run playbook by ansible-playbook ansible/ConigureNewEsxiHost.yml

 

4. You can check in meantime if any task starts running on vcenter site. This will takes 2-3 minutes

 

5. Check all configurations

ESX hostname

DNS Settings

Welcome message.

 

Host in CL100 cluster in Vcenter

 

 

 

 

Please  Subscribe

 2,513 total views,  10 views today