File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 2323 ternary('ansible.posix.rhel_rpm_ostree', omit) }}"
2424 when : " 'openssl' not in ansible_facts.packages"
2525
26+ - name : Get openssl algorithms
27+ command : openssl list -public-key-algorithms
28+ register : openssl_algorithms
29+ changed_when : false
30+ no_log : true # this is quite verbose
31+
2632 - name : Generate a self signed pcsd cert and the pcsd key
2733 command : >-
28- openssl req -x509 -newkey rsa:2048 -nodes
34+ openssl req -x509 -newkey {{ key_algo }} -nodes
2935 -keyout "{{ __test_pcsd_private_key_path }}"
3036 -out "{{ __test_pcsd_public_key_path }}"
3137 -subj "/CN={{ ansible_host }}"
3238 changed_when : false
39+ vars :
40+ key_algo : " {{ 'mldsa65' if 'MLDSA65' in openssl_algorithms.stdout
41+ else 'rsa:2048' }}"
3342
3443 - name : Generate corosync key
3544 copy :
You can’t perform that action at this time.
0 commit comments