diff --git a/tasks/configure_crypto_policy.yml b/tasks/configure_crypto_policy.yml
index 2e96bf6667a47378bf0a08d53c6716f7a442e2e0..d44d3644f388514e6a088cc483736db272887014 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.