forked from ansible-lockdown/RHEL9-CIS
updated test
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
parent
a8602689b8
commit
9a1ab79199
1 changed files with 2 additions and 1 deletions
|
|
@ -20,7 +20,8 @@
|
||||||
- skip_ansible_lint # Added as no_log still errors on ansuible-lint
|
- skip_ansible_lint # Added as no_log still errors on ansuible-lint
|
||||||
|
|
||||||
- name: "1.2.2 | AUDIT | Ensure GPG keys are configured"
|
- name: "1.2.2 | AUDIT | Ensure GPG keys are configured"
|
||||||
command: gpg --quiet --with-fingerprint "{{ rpm_gpg_key }}"
|
shell: "PKG=`rpm -qf {{ rpm_gpg_key }}` && rpm -q --queryformat \"%{PACKAGER} %{SIGPGP:pgpsig}\\n\" \"${PKG}\" | grep \"^{{ rpm_packager }}.*Key.ID.{{ rpm_key }}\""
|
||||||
|
changed_when: false
|
||||||
when:
|
when:
|
||||||
- rhel9cis_rule_1_2_2
|
- rhel9cis_rule_1_2_2
|
||||||
- ansible_distribution == "RedHat" or
|
- ansible_distribution == "RedHat" or
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue