From e0f5ca34448d48b0d58ff2d59ec342bb6bf53737 Mon Sep 17 00:00:00 2001 From: Michael Wilson Date: Wed, 23 Nov 2022 17:13:38 +0100 Subject: [PATCH] add unlock task --- hetzner/autoinstall/tasks/main.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hetzner/autoinstall/tasks/main.yml b/hetzner/autoinstall/tasks/main.yml index 273347a..7780099 100644 --- a/hetzner/autoinstall/tasks/main.yml +++ b/hetzner/autoinstall/tasks/main.yml @@ -23,3 +23,7 @@ - name: reboot reboot: + +- name: unlock disk + raw: "echo {{ autoinstall_disk_encryption secret }} | cryptroot-unlock" + when: hetzner_autoinstall|default(false) or disk_unlock|default(false)