Skip to content

Commit 47a6fe7

Browse files
committed
vmware_host_ntp: Use esxi_connection in integration
1 parent ab36f3e commit 47a6fe7

File tree

1 file changed

+5
-7
lines changed
  • tests/integration/targets/vmware_host_ntp/tasks

1 file changed

+5
-7
lines changed

tests/integration/targets/vmware_host_ntp/tasks/main.yml

+5-7
Original file line numberDiff line numberDiff line change
@@ -193,14 +193,13 @@
193193
- name: The integration tests when ESXi disconnected
194194
block:
195195
- name: Disconnect ESXi
196-
community.vmware.vmware_host:
196+
vmware.vmware.esxi_connection:
197197
hostname: "{{ vcenter_hostname }}"
198198
username: "{{ vcenter_username }}"
199199
password: "{{ vcenter_password }}"
200200
validate_certs: false
201201
datacenter: "{{ dc1 }}"
202-
cluster: "{{ ccr1 }}"
203-
esxi_hostname: '{{ esxi1 }}'
202+
esxi_host_name: '{{ esxi1 }}'
204203
state: disconnected
205204
register: disconnect_esxi_result
206205

@@ -245,15 +244,14 @@
245244
- add_ntp_server_disconnected_esxi_result.changed is sameas false
246245

247246
- name: Reconnect ESXi
248-
community.vmware.vmware_host:
247+
vmware.vmware.esxi_connection:
249248
hostname: "{{ vcenter_hostname }}"
250249
username: "{{ vcenter_username }}"
251250
password: "{{ vcenter_password }}"
252251
validate_certs: false
253252
datacenter: "{{ dc1 }}"
254-
cluster: "{{ ccr1 }}"
255-
esxi_hostname: '{{ esxi1 }}'
256-
state: reconnect
253+
esxi_host_name: '{{ esxi1 }}'
254+
state: connected
257255
register: reconnect_esxi_result
258256

259257
- name: Make sure if ESXi host reconnected

0 commit comments

Comments
 (0)