Skip to content

Commit ab36f3e

Browse files
committed
vmware_host_facts: Use esxi_connection in integration
1 parent 9bf1d8d commit ab36f3e

File tree

1 file changed

+7
-9
lines changed
  • tests/integration/targets/vmware_host_facts/tasks

1 file changed

+7
-9
lines changed

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

+7-9
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,13 @@
2727
- name: Get info from an ESXi host that is offline / disconnected / shut down
2828
block:
2929
- name: Disconnect ESXi host
30-
community.vmware.vmware_host:
30+
vmware.vmware.esxi_connection:
3131
validate_certs: false
3232
hostname: "{{ vcenter_hostname }}"
3333
username: "{{ vcenter_username }}"
3434
password: "{{ vcenter_password }}"
35-
datacenter_name: '{{ dc1 }}'
36-
cluster_name: '{{ ccr1 }}'
37-
esxi_hostname: "{{ esxi1 }}"
35+
datacenter: '{{ dc1 }}'
36+
esxi_host_name: "{{ esxi1 }}"
3837
state: disconnected
3938

4039
- name: Give the ESXi host time to disconnect
@@ -58,12 +57,11 @@
5857
- host_facts_0002 is defined
5958
always:
6059
- name: Reconnect ESXi host
61-
community.vmware.vmware_host:
60+
vmware.vmware.esxi_connection:
6261
validate_certs: false
6362
hostname: "{{ vcenter_hostname }}"
6463
username: "{{ vcenter_username }}"
6564
password: "{{ vcenter_password }}"
66-
datacenter_name: '{{ dc1 }}'
67-
cluster_name: '{{ ccr1 }}'
68-
esxi_hostname: "{{ esxi1 }}"
69-
state: reconnect
65+
datacenter: '{{ dc1 }}'
66+
esxi_host_name: "{{ esxi1 }}"
67+
state: connected

0 commit comments

Comments
 (0)