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:
parent
d68771ea7a
commit
510cae7fd7
|
@ -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():
|
||||
|
|
Loading…
Reference in a new issue