[stable-1] x509_certificate: handle unexpected error, fix test (#704)

* Handle unexpected error.

* Increase certificate key size on Darwin.

* Add changelog fragment.
This commit is contained in:
Felix Fontein
2024-01-26 21:58:12 +01:00
committed by GitHub
parent 642d6872d1
commit 1d26ee66ea
3 changed files with 13 additions and 3 deletions

View File

@@ -4,6 +4,7 @@ default_rsa_key_size_certifiates: >-
{{
2048 if
(ansible_os_family == "RedHat" and ansible_facts.distribution_major_version | int >= 8) or
(ansible_distribution == "Ubuntu" and ansible_facts.distribution_major_version | int >= 20)
(ansible_distribution == "Ubuntu" and ansible_facts.distribution_major_version | int >= 20) or
(ansible_os_family == "Darwin" and ansible_facts.distribution_major_version | int >= 12)
else 1024
}}