Ansible: Vmware Host UP Durumunu Kontrol Etmek

Islemleriniz esnasinda hostu reboot ettiniz ve tekrar up oldugunu kontrol ederek bir sonraki adima gecmesini istiyorsunuz. Asagidaki playbooku piplenanizda kullanabilirsiniz.

---
- name: Vmware Esxi Hypervisor Installation
  hosts: "{{ delegate_server }}"
  gather_facts: no
  tasks:
    - name: ESXi wait for the reboot to complete
      wait_for:
        host: '{{ esxi_hostname }}'
        port: 443
        delay: 120
        state: started
        timeout: 3600
      delegate_to: "{{ delegate_server }}"

İlk yorum yapan olun

Bir yanıt bırakın

E-posta hesabınız yayımlanmayacak.


*