From 135c935c4f762096d6b972c333114ce7bfb3e9b2 Mon Sep 17 00:00:00 2001 From: Shawn Wilsher Date: Wed, 20 May 2026 20:00:26 -0700 Subject: [PATCH] fix(longhorn_allow_encrypted_trim): cryptsetup on fedora wants the path after /dev/mapper This also appears to work correctly on ubuntu (in both forms), but with fedora, it failed with the full path. --- .../longhorn_allow_encrypted_trim/tasks/process_volume.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/roles/longhorn_allow_encrypted_trim/tasks/process_volume.yml b/ansible/roles/longhorn_allow_encrypted_trim/tasks/process_volume.yml index 538967eb..1aadfb43 100644 --- a/ansible/roles/longhorn_allow_encrypted_trim/tasks/process_volume.yml +++ b/ansible/roles/longhorn_allow_encrypted_trim/tasks/process_volume.yml @@ -15,7 +15,7 @@ }} - name: Persist allowing discards ansible.builtin.expect: - command: "cryptsetup --allow-discards --persistent refresh {{ device }}" + command: "cryptsetup --allow-discards --persistent refresh {{ device.removeprefix('/dev/mapper/') }}" responses: "^Enter passphrase for ": "{{ encryption_key }}" become: true