Fix the regex

Fixed the regex checking for config files containing AllowUnauthenticated
in apt config directory

Change-Id: I5422e1cfd0c532cd16d060c3ac384a2ca7ffbef3
(cherry picked from commit b840612551)
This commit is contained in:
Ravi Kumar Boyapati
2017-02-10 16:49:58 -05:00
committed by Jesse Pretorius (odyssey4me)
parent 9b820be289
commit a6785964af
2 changed files with 2 additions and 2 deletions

View File

@@ -49,7 +49,7 @@
# and remediation.
#
- name: Search for AllowUnauthenticated in /etc/apt/apt.conf.d/ (for V-38462)
command: grep -r AllowUnauthenticated /etc/apt/apt.conf.d/
command: grep -r '^[^#].*AllowUnauthenticated \"true\"' /etc/apt/apt.conf.d/
register: v38462_result
changed_when: False
failed_when: False

View File

@@ -63,7 +63,7 @@
# See the documentation for RHEL-07-020150 for more details on this check.
- name: Search for AllowUnauthenticated in /etc/apt/apt.conf.d/
command: grep -r AllowUnauthenticated /etc/apt/apt.conf.d/
command: grep -r '^[^#].*AllowUnauthenticated \"true\"' /etc/apt/apt.conf.d/
register: gpgcheck_result
changed_when: False
failed_when: False