Ansible: ESXi Host Reconnect to Vcenter

By | 28/12/2022

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 }}'

Bir cevap yazın

E-posta hesabınız yayımlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir