mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
432 B
YAML
18 lines
432 B
YAML
5 years ago
|
- block:
|
||
|
- include_tasks: '{{ test_playbook }}'
|
||
|
always:
|
||
|
- name: Remove VM
|
||
|
vmware_guest:
|
||
|
hostname: "{{ vcenter_hostname }}"
|
||
|
username: "{{ vcenter_username }}"
|
||
|
password: "{{ vcenter_password }}"
|
||
|
validate_certs: no
|
||
|
# cluster: "{{ ccr1 }}"
|
||
|
name: '{{ item }}'
|
||
|
force: yes
|
||
|
state: absent
|
||
|
with_items:
|
||
|
- test_vm1
|
||
|
- test_vm2
|
||
|
- test_vm3
|