Ansible: ESXi Host Reconnect to Vcenter

Baglantisi kesilmis ESX hostunuzu bu playbook ile tekrar vcenter a reconnect edebilirsiniz.

---
- name: Vmware Esxi Host Configuration
  hosts: '{{ delegate_server }}'
  gather_facts: no
  tasks:
  - name: Reconnect Esxi Host
    community.vmware.vmware_host:
      validate_certs: no
      datacenter: "{{ datacenter_name }}"
      cluster_name: "{{ cluster_name }}"
      hostname: '{{ vcenter_hostname }}'
      username: '{{ vcenter_username }}'
      password: '{{ vcenter_password }}'
      esxi_hostname: '{{ esxi_hostname }}'
      state: present
      reconnect_disconnected_host: yes
    delegate_to: '{{ delegate_server }}'

Join the ConversationLeave a reply

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

Comment*

Name*

Website