Skip to content

Commit 9db9b6b

Browse files
committed
vmware_host_auto_start: Use esxi_connection in integration
1 parent c365462 commit 9db9b6b

File tree

1 file changed

+9
-5
lines changed
  • tests/integration/targets/vmware_host_auto_start/tasks

1 file changed

+9
-5
lines changed

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

+9-5
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,16 @@
1111
setup_datastore: true
1212

1313
- name: Move the ESXi hosts out of the cluster
14-
vmware_host:
15-
datacenter_name: '{{ dc1 }}'
16-
esxi_hostname: '{{ item }}'
14+
vmware.vmware.esxi_host:
15+
hostname: "{{ vcenter_hostname }}"
16+
username: "{{ vcenter_username }}"
17+
password: "{{ vcenter_password }}"
18+
validate_certs: false
19+
datacenter: "{{ dc1 }}"
20+
folder: '/DC0/host'
21+
esxi_host_name: "{{ item }}"
1722
esxi_username: '{{ esxi_user }}'
1823
esxi_password: '{{ esxi_password }}'
19-
folder: '/DC0/host'
2024
state: present
2125
with_items: "{{ esxi_hosts }}"
2226

@@ -26,7 +30,7 @@
2630
username: "{{ vcenter_username }}"
2731
password: "{{ vcenter_password }}"
2832
validate_certs: false
29-
esxi_host_name: '{{ item }}'
33+
esxi_host_name: "{{ item }}"
3034
enable_maintenance_mode: false
3135
with_items: "{{ esxi_hosts }}"
3236

0 commit comments

Comments
 (0)