4
0
Fork 0

fixed regex

Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
Mark Bolwell 2022-04-04 19:30:14 +01:00
parent 9a0ac22331
commit 2eeccbdc69
No known key found for this signature in database
GPG key ID: F734FDFC154B83FB

View file

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