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:
Gonéri Le Bouder 2019-05-13 14:12:21 -04:00
commit 4b99a2ac50
35 changed files with 97 additions and 100 deletions

View file

@ -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