Esxi hostunuzu AD e join etmek icin asagidaki playbooku kullanabilirsiniz. Parametrelere yetkili bir AD user name ve passwordu yazmaniz gerekiyor.
--- - name: Vmware Esxi Host Configuration hosts: '{{ new_esxi_hostname }}.{{ domain }}' connection: local gather_facts: no tasks: - name: Join an AD domain community.vmware.vmware_host_active_directory: validate_certs: False hostname: '{{ vcenter_hostname }}' username: '{{ vcenter_username }}' password: '{{ vcenter_password }}' esxi_hostname: '{{ new_esxi_hostname }}.{{ domain }}' ad_domain: '{{ domain }}' ad_user: '{{ ad_user }}' ad_password: '{{ ad_password }}' ad_state: present delegate_to: localhost