diff --git a/roles/dropbear_luks_unlock/defaults/main.yml b/roles/dropbear_luks_unlock/defaults/main.yml index a68be34..d917b5c 100644 --- a/roles/dropbear_luks_unlock/defaults/main.yml +++ b/roles/dropbear_luks_unlock/defaults/main.yml @@ -13,15 +13,13 @@ dropbear_initramfs_base_paths: base_path: "/etc/dropbear-initramfs" config_file: "config" default: - base_path: "/etc/dropbear/initramfs" - config_file: "dropbear.conf" + base_path: "/etc/dropbear/initramfs" + config_file: "dropbear.conf" -dropbear_initramfs_base_path: "{{ (dropbear_initramfs_base_paths[ansible_distribution] - [ansible_distribution_major_version | string] +dropbear_initramfs_base_path: "{{ (dropbear_initramfs_base_paths[ansible_distribution][ansible_distribution_major_version | string] | default(dropbear_initramfs_base_paths.default)).base_path }}" -dropbear_initramfs_config_file: "{{ (dropbear_initramfs_base_paths[ansible_distribution] - [ansible_distribution_major_version | string] +dropbear_initramfs_config_file: "{{ (dropbear_initramfs_base_paths[ansible_distribution][ansible_distribution_major_version | string] | default(dropbear_initramfs_base_paths.default)).config_file }}" dropbear_initramfs_config_path: "{{ dropbear_initramfs_base_path }}/{{ dropbear_initramfs_config_file }}" dropbear_initramfs_authorized_keys_path: "{{ dropbear_initramfs_base_path }}/authorized_keys"