exit maintainence mode

root@localhost ~]# cat addvsphere.yml
---
- name: remove mode
  hosts: localhost
  connection: local
  gather_facts: no
  tasks:

  - name: Enter VSAN-Compliant Maintenance Mode
    vmware_maintenancemode:
      hostname: 192.168.0.107
      username: root
      password: vmware
      validate_certs: no
      esxi_hostname: 192.168.0.108
      vsan: ensureObjectAccessibility
      evacuate: yes
      timeout: 3600
      state: absent
    delegate_to: localhost

[root@localhost ~]# ansible-playbook addvsphere.yml
 [WARNING]: Could not match supplied host pattern, ignoring: all

 [WARNING]: provided hosts list is empty, only localhost is available


PLAY [remove mode] ********************************************************************

TASK [out from VSAN-Compliant Maintenance Mode] ******************************************
changed: [localhost -> localhost]

PLAY RECAP ****************************************************************************
localhost                  : ok=1    changed=1    unreachable=0    failed=0 

[root@localhost ~]#




https://docs.google.com/document/d/e/2PACX-1vT9adQ91iaTQnhacqniSDNCXlzZ1ObYTsO5bxdr5do_JDRDXSjXIX4qiEncr-phfr9vXif7LvrMvYnW/pub

Comments

Popular posts from this blog

ansible redhat cluster qorum qdevice

PE 3.9.0 on centos 6

gfs2 cluster