File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
linux_os/guide/system/software/integrity/crypto/configure_crypto_policy/ansible Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 3636 failed_when : false
3737 check_mode : false
3838
39+ - name : " {{{ rule_title }}} - Check existence of /etc/crypto-policies/back-ends/nss.config"
40+ ansible.builtin.stat :
41+ path : /etc/crypto-policies/back-ends/nss.config
42+ register : nss_config_stat
43+ changed_when : false
44+
3945- name : " {{{ rule_title }}} - Verify that Crypto Policy is Set (runtime)"
4046 ansible.builtin.command : /usr/bin/update-crypto-policies --set {{ var_system_crypto_policy }}
4147 when : >
4248 (current_crypto_policy.stdout.strip() != var_system_crypto_policy) or
43- (config_file_stat.stat.exists and current_file_stat.stat.exists and config_file_stat.stat.mtime > current_file_stat.stat.mtime)
49+ (config_file_stat.stat.exists and current_file_stat.stat.exists and config_file_stat.stat.mtime > current_file_stat.stat.mtime) or
50+ (not nss_config_stat.stat.exists)
You can’t perform that action at this time.
0 commit comments