From 5ff49427c6ac62eb4996b17fb6f6db7da06d6cae Mon Sep 17 00:00:00 2001 From: Michael Wilson Date: Wed, 30 Nov 2022 19:32:45 +0100 Subject: [PATCH] fix var name --- hetzner/autoinstall/tasks/unlock.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hetzner/autoinstall/tasks/unlock.yml b/hetzner/autoinstall/tasks/unlock.yml index 61d5c01..c2b5f5e 100644 --- a/hetzner/autoinstall/tasks/unlock.yml +++ b/hetzner/autoinstall/tasks/unlock.yml @@ -5,7 +5,7 @@ wait_for: delay: 5 port: '{{ hostvars[inventory_hostname].ansible_ssh_port|default(22) }}' - host: '{{ hostvars[inventory_hostname].ansible_ssh_host }}' + host: '{{ hostvars[inventory_hostname].ansible_host }}' search_regex: OpenSSH|dropbear timeout: 300 delegate_to: localhost @@ -16,7 +16,7 @@ -i {{ hostvars[inventory_hostname].ansible_ssh_private_key_file }} \ -oStrictHostkeyChecking=no \ -oBatchMode=yes \ - {{ hostvars[inventory_hostname].ansible_user }}@{{ hostvars[inventory_hostname].ansible_ssh_host }} echo test + {{ hostvars[inventory_hostname].ansible_user }}@{{ hostvars[inventory_hostname].ansible_host }} echo test register: connection_test ignore_errors: yes delegate_to: localhost