Skip to content
Snippets Groups Projects
Commit 510cae7f authored by George Rawlinson's avatar George Rawlinson :coffee:
Browse files

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
parent d68771ea
No related branches found
No related tags found
1 merge request!92Fix deprecated ansible variables
......@@ -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():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment