Add IP info to nodepool hostvars

Expose the IP address info supplied by nodepool in the Ansible
hostvars.

Change-Id: Ia482dc54e963c261e610650fd85d2deae8953c69
This commit is contained in:
James E. Blair 2017-08-25 14:53:24 -07:00
parent 7a8d83c7c8
commit 22dd6506f4
1 changed files with 5 additions and 1 deletions

View File

@ -1159,7 +1159,11 @@ class AnsibleJob(object):
az=node.get('az'),
cloud=node.get('cloud'),
provider=node.get('provider'),
region=node.get('region')))
region=node.get('region'),
interface_ip=node.get('interface_ip'),
public_ipv4=node.get('public_ipv4'),
private_ipv4=node.get('private_ipv4'),
public_ipv6=node.get('public_ipv6')))
host_keys = []
for key in node.get('host_keys'):