From 510cae7fd7f00b51e55ea9caae414b70b1f94a00 Mon Sep 17 00:00:00 2001 From: George Rawlinson <george@rawlinson.net.nz> Date: Wed, 23 Sep 2020 22:08:50 +0000 Subject: [PATCH] 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 --- hcloud_inventory.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hcloud_inventory.py b/hcloud_inventory.py index 35a1c9f9f..620444039 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(): -- GitLab