-
Notifications
You must be signed in to change notification settings - Fork 3
/
vm-destroy.yml
42 lines (42 loc) · 967 Bytes
/
vm-destroy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
---
- name: Remove a VM
hosts: localhost
connection: local
gather_facts: no
tasks:
- name: test01
vmware_guest:
hostname: 172.16.1.5
username: [email protected]
password: VMware1!
validate_certs: False
name: web02
cluster: rlab-cluster01
state: absent
force: yes
delegate_to: localhost
register: facts
- name: test02
vmware_guest:
hostname: 172.16.1.5
username: [email protected]
password: VMware1!
validate_certs: False
name: web03
cluster: rlab-cluster01
state: absent
force: yes
delegate_to: localhost
register: facts
- name: test03
vmware_guest:
hostname: 172.16.1.5
username: [email protected]
password: VMware1!
validate_certs: False
name: testvm_2
cluster: rlab-cluster01
state: absent
force: yes
delegate_to: localhost
register: facts