tidy up crypto step

Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
Mark Bolwell 2022-01-19 09:36:07 +00:00
parent 3dcaa58291
commit 8f9e11f5f5
No known key found for this signature in database
GPG key ID: F734FDFC154B83FB

View file

@ -41,13 +41,11 @@
- name: "PRELIM | Setup crypto-policy"
block:
- name: "PRELIM | Install crypto-policies"
package:
dnf:
name:
- crypto-policies
- crypto-policies-scripts
state: present
with_items:
- "crypto-policies crypto-policies-scripts"
- name: "PRELIM | Gather system-wide crypto-policy"
shell: update-crypto-policies --show
@ -56,7 +54,6 @@
changed_when: false
check_mode: false
register: system_wide_crypto_policy
when: "'crypto-policies' in ansible_facts.packages"
when:
- rhel9cis_rule_1_10 or
rhel9cis_rule_1_11