remove esxi host from vcenter
[root@localhost ~]# cat removesphere.yml
---
- name: remove esxi
hosts: localhost
connection: local
gather_facts: no
tasks:
- name: remove ESXi Host to VCSA
vmware_host:
hostname: 192.168.0.107
username: root
password: vmware
validate_certs: no
datacenter_name: dc
cluster_name: cluster
esxi_hostname: 192.168.0.108
esxi_username: root
esxi_password: vgskiran
state: absent
[root@localhost ~]# ansible-playbook removesphere.yml
[WARNING]: Could not match supplied host pattern, ignoring: all
[WARNING]: provided hosts list is empty, only localhost is available
PLAY [remove esxi] ********************************************************************
TASK [remove ESXi Host to VCSA] *******************************************************
changed: [localhost]
PLAY RECAP ****************************************************************************
localhost : ok=1 changed=1 unreachable=0 failed=0
https://docs.google.com/document/d/e/2PACX-1vQZcEyE15Sf8kyvUhhiW742dMoIJ4Z5Tw2ImcxPsbx9i8jzDZARIB58yiGMxLTPrPZFXYbpu93Yflr8/pub
Comments
Post a Comment