Ansible: Add Esxi Host to Active Directory

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

Join the ConversationLeave a reply

Your email address will not be published. Required fields are marked *

Comment*

Name*

Website