diff options
author | Gonéri Le Bouder <goneri@lebouder.net> | 2019-05-13 14:12:21 -0400 |
---|---|---|
committer | Gonéri Le Bouder <goneri@lebouder.net> | 2019-05-13 17:04:17 -0400 |
commit | 4b99a2ac5062e9c46f6c998d4deb2dcbcfe658ac (patch) | |
tree | eb748489146724b355a3c3371372c1de771f9f6e /test/integration/targets/vmware_host | |
parent | eefc90b66f7d02338a1484ce6a1350eddf640d05 (diff) | |
download | ansible-4b99a2ac5062e9c46f6c998d4deb2dcbcfe658ac.tar.gz |
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.
Diffstat (limited to 'test/integration/targets/vmware_host')
-rw-r--r-- | test/integration/targets/vmware_host/tasks/main.yml | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/integration/targets/vmware_host/tasks/main.yml b/test/integration/targets/vmware_host/tasks/main.yml index f8ff4cbad8..093edd447e 100644 --- a/test/integration/targets/vmware_host/tasks/main.yml +++ b/test/integration/targets/vmware_host/tasks/main.yml @@ -12,7 +12,7 @@ password: '{{ vcenter_password }}' datacenter_name: '{{ dc1 }}' cluster_name: '{{ ccr1 }}' - esxi_hostname: '{{ hostvars[esxi1].ansible_host }}' + esxi_hostname: '{{ esxi1 }}' esxi_username: '{{ hostvars[esxi1].ansible_user }}' esxi_password: '{{ hostvars[esxi1].ansible_password }}' state: present @@ -26,7 +26,7 @@ password: '{{ vcenter_password }}' datacenter_name: '{{ dc1 }}' cluster_name: '{{ ccr1 }}' - esxi_hostname: '{{ hostvars[esxi1].ansible_host }}' + esxi_hostname: '{{ esxi1 }}' esxi_username: '{{ hostvars[esxi1].ansible_user }}' esxi_password: '{{ hostvars[esxi1].ansible_password }}' state: present @@ -44,7 +44,7 @@ username: "{{ vcenter_username }}" password: "{{ vcenter_password }}" validate_certs: no - esxi_hostname: '{{ hostvars[esxi2].ansible_host }}' + esxi_hostname: '{{ esxi2 }}' esxi_username: '{{ hostvars[esxi2].ansible_user }}' esxi_password: '{{ hostvars[esxi2].ansible_password }}' datacenter_name: "{{ dc1 }}" @@ -65,7 +65,7 @@ username: "{{ vcenter_username }}" password: "{{ vcenter_password }}" validate_certs: no - esxi_hostname: '{{ hostvars[esxi2].ansible_host }}' + esxi_hostname: '{{ esxi2 }}' datacenter_name: "{{ dc1 }}" cluster_name: "{{ ccr1 }}" fetch_ssl_thumbprint: False @@ -77,7 +77,7 @@ username: "{{ vcenter_username }}" password: "{{ vcenter_password }}" validate_certs: no - esxi_hostname: '{{ hostvars[esxi2].ansible_host }}' + esxi_hostname: '{{ esxi2 }}' datacenter_name: "{{ dc1 }}" cluster_name: "{{ ccr1 }}" state: absent @@ -118,7 +118,7 @@ username: "{{ vcenter_username }}" password: "{{ vcenter_password }}" validate_certs: no - esxi_hostname: '{{ hostvars[esxi2].ansible_host }}' + esxi_hostname: '{{ esxi2 }}' esxi_username: '{{ hostvars[esxi2].ansible_user }}' esxi_password: '{{ hostvars[esxi2].ansible_password }}' datacenter_name: "{{ dc1 }}" @@ -138,7 +138,7 @@ username: "{{ vcenter_username }}" password: "{{ vcenter_password }}" validate_certs: no - esxi_hostname: '{{ hostvars[esxi2].ansible_host }}' + esxi_hostname: '{{ esxi2 }}' esxi_username: '{{ hostvars[esxi2].ansible_user }}' esxi_password: '{{ hostvars[esxi2].ansible_password }}' datacenter_name: "{{ dc1 }}" @@ -157,7 +157,7 @@ username: "{{ vcenter_username }}" password: "{{ vcenter_password }}" validate_certs: no - esxi_hostname: '{{ hostvars[esxi2].ansible_host }}' + esxi_hostname: '{{ esxi2 }}' esxi_username: '{{ hostvars[esxi2].ansible_user }}' esxi_password: '{{ hostvars[esxi2].ansible_password }}' datacenter_name: "{{ dc1 }}" |