89703b3284
Some teardown tasks are now enabled only if we have ESXi in the configuration file. On my system and in a vcenter only scenario, `vcenter_folder` goes from 42.7 to 31.2s.
24 lines
512 B
YAML
24 lines
512 B
YAML
---
|
|
- name: Delete a datastore cluster to datacenter
|
|
vmware_datastore_cluster:
|
|
datacenter_name: "{{ dc1 }}"
|
|
datastore_cluster_name: '{{ item }}'
|
|
state: absent
|
|
with_items:
|
|
- DSC1
|
|
- DSC2
|
|
ignore_errors: yes
|
|
|
|
- name: Remove the datacenter
|
|
vmware_datacenter:
|
|
datacenter_name: '{{ item }}'
|
|
state: absent
|
|
when: vcsim is not defined
|
|
with_items:
|
|
- '{{ dc1 }}'
|
|
- datacenter_0001
|
|
|
|
- name: kill vcsim
|
|
uri:
|
|
url: "http://{{ vcsim }}:5000/killall"
|
|
when: vcsim is defined
|