Fix deprecated ansible variables

From 2.0[0] onwards, all `ansible_ssh_*` variables are deprecated.

[0]: https://docs.ansible.com/ansible/2.3/intro_inventory.html
This commit is contained in:
George Rawlinson 2020-09-23 22:08:50 +00:00
parent d68771ea7a
commit 510cae7fd7

View file

@ -25,9 +25,9 @@ def list_running_hosts(client):
def get_host_details(client, host):
server = client.servers.get_by_name(host)
return {'ansible_ssh_host': server.public_net.ipv4.ip,
'ansible_ssh_port': 22,
'ansible_ssh_user': "root"}
return {'ansible_host': server.public_net.ipv4.ip,
'ansible_port': 22,
'ansible_user': "root"}
def main():