I am new to ansible and want to know how to add a esxi host to vcenter in a
datacenter
I have the following in a yml file but not sure what else to do
- hosts: localhost
connection: local
tasks:
- name: include vars
include_vars:
- name: Add ESXi Host to vCenter
vmware_host:
hostname: '{{ vcenter_hostname }}'
username: '{{ vcenter_username }}'
password: '{{ vcenter_password }}'
datacenter: datacenter_name
esxi_hostname: '{{ esxi_hostname }}'
esxi_username: '{{ esxi_username }}'
esxi_password: '{{ esxi_password }}'
state: present
delegate_to: localhost
~
please help as vmware ansible seems very limited in info
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/e67f9df7-418d-4e35-8910-308b4435ec62%40googlegroups.com.