Ansible: Esxi Maintenance Mode Set

Esxi hostunuzu Maintenance Mode almak yada cikarmak icin asagikdaki playbooku kullanabilirsiniz. Buradaki state bolumunu senaryaniza gore degistirmeniz gerekiyor.

 

---
- name: Vmware Esxi Host Configuration
  hosts: '{{ esxi_hostname }}'
  gather_facts: no
  connection: local
  tasks:
  - name: Exit Maintenance Mode
    community.vmware.vmware_maintenancemode:
      validate_certs: False
      hostname: "{{ vcenter_hostname }}"
      username: "{{ vcenter_username }}"
      password: "{{ vcenter_password }}"
      esxi_hostname: "{{ esxi_hostname }}"
      evacuate: true
      timeout: 3600
      state: absent
    delegate_to: "{{ delegate_server }}"

Join the ConversationLeave a reply

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

Comment*

Name*

Website