mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 21:00:22 -07:00
vmware: use hostname in esxi_hostname
The use of the `hostvars[esxi1].ansible_host` was attempt to use different hostname and IP address. But it's actually the source of more problems. VMware expects to be able to resolvable the host name. This means, that if someone wants to run the test-suite, s/he needs to use a DNS or update the `/etc/hosts` files on the different hosts.
This commit is contained in:
parent
eefc90b66f
commit
4b99a2ac50
35 changed files with 97 additions and 100 deletions
|
@ -27,7 +27,7 @@
|
|||
hostname: "{{ vcenter_hostname }}"
|
||||
username: "{{ vcenter_username }}"
|
||||
password: "{{ vcenter_password }}"
|
||||
esxi_hostname: '{{ hostvars[esxi1].ansible_host }}'
|
||||
esxi_hostname: '{{ esxi1 }}'
|
||||
validate_certs: no
|
||||
state: disabled
|
||||
register: host_hyperthreading_facts
|
||||
|
@ -44,7 +44,7 @@
|
|||
hostname: "{{ vcenter_hostname }}"
|
||||
username: "{{ vcenter_username }}"
|
||||
password: "{{ vcenter_password }}"
|
||||
esxi_hostname: '{{ hostvars[esxi1].ansible_host }}'
|
||||
esxi_hostname: '{{ esxi1 }}'
|
||||
validate_certs: no
|
||||
state: disabled
|
||||
register: host_hyperthreading_facts_check_mode
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue