From 0cdba386501138168fdd4570d43502a76f3dbd4e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=B6rg=20Sachse?= <joerg.sachse@slub-dresden.de>
Date: Fri, 30 May 2025 09:17:14 +0200
Subject: [PATCH] fix: logical mistake in crypto-policy condition

---
 tasks/configure_crypto_policy.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tasks/configure_crypto_policy.yml b/tasks/configure_crypto_policy.yml
index 2e96bf6..d44d364 100644
--- a/tasks/configure_crypto_policy.yml
+++ b/tasks/configure_crypto_policy.yml
@@ -8,7 +8,7 @@
 - name: Set crypto policy.
   ansible.builtin.command:
     cmd: "/usr/bin/update-crypto-policies --set FUTURE"
-  when: "'FUTURE' in crypto_policy.stdout"
+  when: "'FUTURE' not in crypto_policy.stdout"
   notify:
     - "restart sshd"
     # The best soluion would be to reboot the server, but we won't do that for availability.
-- 
GitLab