handler with include

master
Michael Wilson 3 years ago
parent 9f3f392626
commit 31984db41c
  1. 11
      hetzner/autoinstall/handlers/main.yml
  2. 9
      hetzner/autoinstall/tasks/unlock.yml

@ -1,11 +1,2 @@
- name: unlock_disk
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
include_tasks: tasks/unlock.yml

@ -0,0 +1,9 @@
- 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
Loading…
Cancel
Save