From 2d8c5e6b8f88e49df155345fc2e192c05906c3d8 Mon Sep 17 00:00:00 2001 From: Tim Rupp Date: Mon, 3 Apr 2017 13:02:54 -0700 Subject: [PATCH] [openstack] Adds the non-deprecated ansible_host var (#23153) OpenStack dynamic inventory is still using the deprecated ansible_ssh_host. This patch adds ansible_host until such time as ansible_ssh_host is removed --- contrib/inventory/openstack.py | 1 + 1 file changed, 1 insertion(+) diff --git a/contrib/inventory/openstack.py b/contrib/inventory/openstack.py index 6679a2cc3b..b7beb95a7d 100755 --- a/contrib/inventory/openstack.py +++ b/contrib/inventory/openstack.py @@ -121,6 +121,7 @@ def get_host_groups(inventory, refresh=False): def append_hostvars(hostvars, groups, key, server, namegroup=False): hostvars[key] = dict( ansible_ssh_host=server['interface_ip'], + ansible_host=server['interface_ip'], openstack=server) for group in get_groups_from_server(server, namegroup=namegroup): groups[group].append(key)