mirror of
https://github.com/ansible-lockdown/RHEL9-CIS.git
synced 2025-12-27 15:33:06 +00:00
tidy up crypto step
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
parent
3dcaa58291
commit
8f9e11f5f5
1 changed files with 1 additions and 4 deletions
|
|
@ -41,13 +41,11 @@
|
||||||
- name: "PRELIM | Setup crypto-policy"
|
- name: "PRELIM | Setup crypto-policy"
|
||||||
block:
|
block:
|
||||||
- name: "PRELIM | Install crypto-policies"
|
- name: "PRELIM | Install crypto-policies"
|
||||||
package:
|
dnf:
|
||||||
name:
|
name:
|
||||||
- crypto-policies
|
- crypto-policies
|
||||||
- crypto-policies-scripts
|
- crypto-policies-scripts
|
||||||
state: present
|
state: present
|
||||||
with_items:
|
|
||||||
- "crypto-policies crypto-policies-scripts"
|
|
||||||
|
|
||||||
- name: "PRELIM | Gather system-wide crypto-policy"
|
- name: "PRELIM | Gather system-wide crypto-policy"
|
||||||
shell: update-crypto-policies --show
|
shell: update-crypto-policies --show
|
||||||
|
|
@ -56,7 +54,6 @@
|
||||||
changed_when: false
|
changed_when: false
|
||||||
check_mode: false
|
check_mode: false
|
||||||
register: system_wide_crypto_policy
|
register: system_wide_crypto_policy
|
||||||
when: "'crypto-policies' in ansible_facts.packages"
|
|
||||||
when:
|
when:
|
||||||
- rhel9cis_rule_1_10 or
|
- rhel9cis_rule_1_10 or
|
||||||
rhel9cis_rule_1_11
|
rhel9cis_rule_1_11
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue