From 2eeccbdc69d4e455d5ad8c5534f2d48d11c9f676 Mon Sep 17 00:00:00 2001 From: Mark Bolwell Date: Mon, 4 Apr 2022 19:30:14 +0100 Subject: [PATCH] fixed regex Signed-off-by: Mark Bolwell --- tasks/section_1/cis_1.2.x.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/section_1/cis_1.2.x.yml b/tasks/section_1/cis_1.2.x.yml index 9ddfc98..23583d5 100644 --- a/tasks/section_1/cis_1.2.x.yml +++ b/tasks/section_1/cis_1.2.x.yml @@ -44,7 +44,7 @@ - name: "1.2.3 | PATCH | Ensure gpgcheck is globally activated | Update yum.repos" replace: name: "{{ item.path }}" - regexp: "^gpgcheck\s*=\s*0" + regexp: '^gpgcheck\s+=\s+0' replace: "gpgcheck=1" with_items: - "{{ yum_repos.files }}"