From 448881a4ecc75e97dcb534946dacd521b1716485 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=B6rg=20Sachse?= <joerg.sachse@slub-dresden.de>
Date: Wed, 18 Dec 2024 13:19:26 +0100
Subject: [PATCH] fix: use correct module to regex-replace string in file

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

diff --git a/tasks/configure_ssh_hardening.yml b/tasks/configure_ssh_hardening.yml
index 421c109..e2bc452 100644
--- a/tasks/configure_ssh_hardening.yml
+++ b/tasks/configure_ssh_hardening.yml
@@ -1,7 +1,7 @@
 ---
 # man update-crypto-policies for details
 - name: make sure that SSH on RHEL respects the custom settings in sshd_config
-  ansible.builtin.regex_replace:
+  ansible.builtin.lineinfile:
     path: "/etc/sysconfig/sshd"
     regexp: "# CRYPTO_POLICY="
     line: "CRYPTO_POLICY="
-- 
GitLab