diff --git a/hcloud_inventory.py b/hcloud_inventory.py
index 35a1c9f9f16cc1f43b3a903b4a9c240372725305..6204440396413d13dc8f1400f888a85d1c39d636 100755
--- a/hcloud_inventory.py
+++ b/hcloud_inventory.py
@@ -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():