refactor(global_defaults): extract OS family lists to single source of truth
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
---
|
||||
- name: Configure System Cryptography Policy
|
||||
when: os == "rhel" or os in ["almalinux", "rocky"]
|
||||
when: os in (os_family_rhel | difference(['fedora']))
|
||||
ansible.builtin.command: "{{ chroot_command }} /usr/bin/update-crypto-policies --set DEFAULT:NO-SHA1"
|
||||
register: cis_crypto_policy_result
|
||||
changed_when: "'Setting system-wide crypto-policies to' in cis_crypto_policy_result.stdout"
|
||||
|
||||
Reference in New Issue
Block a user