Skip to content

Commit

Permalink
allow certificates without passwords (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
ansibleguy committed Jul 20, 2024
1 parent da9cd71 commit 0c13eb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/instance/certs/manage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
- name: "{{ task_prefix_cert }} | '{{ pki_cert_name }}' | Checking certificate config"
ansible.builtin.assert:
that:
- pki_cert_pwd | meets_password_complexity(PKI_HC)
- pki_cert_pwd | default(none, true) is none or pki_cert_pwd | meets_password_complexity(PKI_HC)
- pki_cert_cnf.req.country | default('', true) | length < 3
vars:
pki_cert_pwd: "{{ pki_cert_cnf.pwd | default(pki_cnf_subca.pwd_cert) | default('') }}"
Expand Down

0 comments on commit 0c13eb9

Please sign in to comment.