forked from ansible-lockdown/RHEL9-CIS
fixed regex
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
parent
9a0ac22331
commit
2eeccbdc69
1 changed files with 1 additions and 1 deletions
|
|
@ -44,7 +44,7 @@
|
||||||
- name: "1.2.3 | PATCH | Ensure gpgcheck is globally activated | Update yum.repos"
|
- name: "1.2.3 | PATCH | Ensure gpgcheck is globally activated | Update yum.repos"
|
||||||
replace:
|
replace:
|
||||||
name: "{{ item.path }}"
|
name: "{{ item.path }}"
|
||||||
regexp: "^gpgcheck\s*=\s*0"
|
regexp: '^gpgcheck\s+=\s+0'
|
||||||
replace: "gpgcheck=1"
|
replace: "gpgcheck=1"
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ yum_repos.files }}"
|
- "{{ yum_repos.files }}"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue