Ansible: ESXi Config Restore

ESX hostunuzu config backup filedan geri donmek icin asagidaki playbooku kullanabilirsiniz.

 

---
- name: Esxi Config Backup
  hosts: '{{ delegate_server }}'
  gather_facts: no
  tasks:
  - name: Restore ESXi Host from Config Backup
    community.vmware.vmware_cfg_backup:
      validate_certs: False
      #hostname: "{{ vcenter_hostname }}"
      #username: "{{ vcenter_username }}"
      #password: "{{ vcenter_password }}"
      hostname: "{{ esxi_hostname }}"
      username: "{{ esxi_username }}"
      password: "{{ esxi_password }}"
      state: loaded
      src: /tmp/configBundle-{{ esxi_hostname }}.tgz
    delegate_to: '{{ delegate_server }}'

Join the ConversationLeave a reply

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

Comment*

Name*

Website