forked from ansible-lockdown/RHEL9-CIS
improved gpg regex
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
parent
3df7334cda
commit
44b712fdf9
1 changed files with 2 additions and 2 deletions
|
|
@ -53,7 +53,7 @@
|
|||
- name: "1.2.1.2 | PATCH | Ensure gpgcheck is globally activated | Update yum.repos"
|
||||
ansible.builtin.replace:
|
||||
name: "{{ item.path }}"
|
||||
regexp: "^gpgcheck=0"
|
||||
regexp: ^gpgcheck\s*=\s*0
|
||||
replace: "gpgcheck=1"
|
||||
loop: "{{ discovered_yum_repos.files }}"
|
||||
loop_control:
|
||||
|
|
@ -87,7 +87,7 @@
|
|||
- name: "1.2.1.3 | PATCH | Ensure repo_gpgcheck is globally activated | amend repo files"
|
||||
ansible.builtin.replace:
|
||||
path: "{{ item.path }}"
|
||||
regexp: '^repo_gpgcheck( |)=( |)0'
|
||||
regexp: ^repo_gpgcheck\s*=s*0
|
||||
replace: repo_gpgcheck=1
|
||||
loop: "{{ discovered_repo_files.files }}"
|
||||
loop_control:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue