mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
[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
This commit is contained in:
parent
eb78da68dd
commit
2d8c5e6b8f
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue