Prevent luks-detection task from aborting on unencrypted devices

This commit is contained in:
Raphael Dannecker 2025-12-17 18:23:10 +01:00
parent 9ee19d1459
commit 2b45174f0f

View file

@ -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