From 366374bfea822f5b80b5396747803263e63eb1ad Mon Sep 17 00:00:00 2001 From: Michael Wilson Date: Wed, 30 Nov 2022 19:04:14 +0100 Subject: [PATCH] fix local action --- hetzner/autoinstall/tasks/unlock.yml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/hetzner/autoinstall/tasks/unlock.yml b/hetzner/autoinstall/tasks/unlock.yml index 05bb2d1..c776b64 100644 --- a/hetzner/autoinstall/tasks/unlock.yml +++ b/hetzner/autoinstall/tasks/unlock.yml @@ -11,14 +11,13 @@ delegate_to: localhost - name: test ssh connection with {{ ansible_user }} - local_action: - module: shell - command: | - ssh -p{{ ansible_ssh_port|default(22) }} \ - -i {{ ansible_ssh_private_key_file }} \ - -oStrictHostkeyChecking=no \ - -oBatchMode=yes \ - {{ ansible_user }}@{{ ansible_ssh_host }} echo test + local_action: | + ansible.builtin.shell + ssh -p{{ ansible_ssh_port|default(22) }} \ + -i {{ ansible_ssh_private_key_file }} \ + -oStrictHostkeyChecking=no \ + -oBatchMode=yes \ + {{ ansible_user }}@{{ ansible_ssh_host }} echo test register: connection_test ignore_errors: yes