From 9f3f3926267a5e06d24da790b1ff82694f9864ec Mon Sep 17 00:00:00 2001 From: Michael Wilson Date: Thu, 24 Nov 2022 15:47:24 +0100 Subject: [PATCH] add wait for --- hetzner/autoinstall/handlers/main.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/hetzner/autoinstall/handlers/main.yml b/hetzner/autoinstall/handlers/main.yml index d9c0b9e..c131b9b 100644 --- a/hetzner/autoinstall/handlers/main.yml +++ b/hetzner/autoinstall/handlers/main.yml @@ -1,2 +1,11 @@ - name: unlock_disk - raw: "printf '{{ autoinstall_disk_encryption_secret }}' | cryptroot-unlock" + block: + - name: send unlock command + raw: "printf '{{ autoinstall_disk_encryption_secret }}' | cryptroot-unlock" + - name: wait for boot + wait_for: + delay: 5 + port: '{{ ansible_ssh_port|default(22) }}' + host: '{{ ansible_ssh_host }}' + search_regex: OpenSSH|dropbear + timeout: 300