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 }}"