From 3f86da1cbfcf483562050acd4b11bc02f0081872 Mon Sep 17 00:00:00 2001 From: Mixer9 <35545791+Mixer9@users.noreply.github.com> Date: Wed, 19 Sep 2018 15:44:54 -0500 Subject: [PATCH] update shared.yml This change has the same effect as #3328 and potentially could return empty values based on number of field differences, using awk and printing the last field no matter how many fixes this issue. --- .../rpm_verification/rpm_verify_hashes/ansible/shared.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux_os/guide/system/software/integrity/software-integrity/rpm_verification/rpm_verify_hashes/ansible/shared.yml b/linux_os/guide/system/software/integrity/software-integrity/rpm_verification/rpm_verify_hashes/ansible/shared.yml index b790e8fc1ce7..30a050f0457e 100644 --- a/linux_os/guide/system/software/integrity/software-integrity/rpm_verification/rpm_verify_hashes/ansible/shared.yml +++ b/linux_os/guide/system/software/integrity/software-integrity/rpm_verification/rpm_verify_hashes/ansible/shared.yml @@ -18,7 +18,7 @@ @ANSIBLE_TAGS@ - name: "Read files with incorrect hash" - shell: "rpm -Va | grep -E '^..5.* /(bin|sbin|lib|lib64|usr)/' | sed -r 's;^.*\\s+(.+);\\1;g'" + shell: "rpm -Va | grep -E '^..5.* /(bin|sbin|lib|lib64|usr)/' | awk '{print $NF}'" register: files_with_incorrect_hash changed_when: False when: package_manager_reinstall_cmd is defined