dns: adjust crypto policy to be idempotent
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
parent
a018c15c33
commit
43fa9928d6
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@
|
|||
|
||||
- name: Set crypto-policy on RHEL9 dns servers to DEFAULT:SHA1
|
||||
command: "update-crypto-policies --set DEFAULT:SHA1"
|
||||
when: inventory_hostname.startswith('ns')
|
||||
when: "inventory_hostname.startswith('ns') and (currentcryptopolicy.stdout.find('DEFAULT:SHA1') == -1 or cryptopolicyapplied.rc != 0)"
|
||||
check_mode: no
|
||||
tags:
|
||||
- crypto-policies
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue