From 2b45174f0f83306ed11fc52ea7ad131f84b862a3 Mon Sep 17 00:00:00 2001 From: Raphael Dannecker Date: Wed, 17 Dec 2025 18:23:10 +0100 Subject: [PATCH] Prevent luks-detection task from aborting on unencrypted devices --- roles/lmn_encrypt/tasks/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/lmn_encrypt/tasks/main.yml b/roles/lmn_encrypt/tasks/main.yml index 83196c8..6c81e7b 100644 --- a/roles/lmn_encrypt/tasks/main.yml +++ b/roles/lmn_encrypt/tasks/main.yml @@ -7,6 +7,7 @@ when: - item.value.partitions is defined - item.value.partitions | dict2items | length > 0 + - item.value.partitions | dict2items | selectattr('value.holders', 'search', 'luks|crypt') | length > 0 loop: "{{ ansible_devices | dict2items }}" - name: Get luks slots