File tree 2 files changed +14
-16
lines changed
tests/integration/targets/prepare_vmware_tests/tasks
2 files changed +14
-16
lines changed Original file line number Diff line number Diff line change 12
12
var : existing_datacenters
13
13
14
14
- name : Force delete the existing DC
15
- vmware.vmware_rest.vcenter_datacenter :
16
- vcenter_hostname : ' {{ vcenter_hostname }}'
17
- vcenter_username : ' {{ vcenter_username }}'
18
- vcenter_password : ' {{ vcenter_password }}'
19
- vcenter_validate_certs : false
15
+ community.vmware.vmware_datacenter :
16
+ hostname : ' {{ vcenter_hostname }}'
17
+ username : ' {{ vcenter_username }}'
18
+ password : ' {{ vcenter_password }}'
19
+ validate_certs : false
20
+ datacenter_name : ' {{ item.name }}'
20
21
state : absent
21
- datacenter : ' {{ item.datacenter }}'
22
- force : true
23
- with_items : " {{ existing_datacenters.value }}"
22
+ with_items : " {{ existing_datacenters.datacenter_info }}"
24
23
until : _result is succeeded
25
24
retries : 10
26
25
delay : 1
Original file line number Diff line number Diff line change 84
84
var : existing_datacenters
85
85
86
86
- name : Force delete the existing DC
87
- vmware.vmware_rest.vcenter_datacenter :
88
- vcenter_hostname : ' {{ vcenter_hostname }}'
89
- vcenter_username : ' {{ vcenter_username }}'
90
- vcenter_password : ' {{ vcenter_password }}'
91
- vcenter_validate_certs : false
87
+ community.vmware.vmware_datacenter :
88
+ hostname : ' {{ vcenter_hostname }}'
89
+ username : ' {{ vcenter_username }}'
90
+ password : ' {{ vcenter_password }}'
91
+ validate_certs : false
92
+ datacenter_name : ' {{ item.name }}'
92
93
state : absent
93
- datacenter : ' {{ item.datacenter }}'
94
- force : true
95
- with_items : " {{ existing_datacenters.value }}"
94
+ with_items : " {{ existing_datacenters.datacenter_info }}"
96
95
until : _result is succeeded
97
96
retries : 10
98
97
delay : 1
You can’t perform that action at this time.
0 commit comments