Fixed issue with getting openssl version from existing fact, get it with shell script instead. This may not work in Windows (trailofbits#14558)

This commit is contained in:
Ken Craig 2023-07-04 13:32:12 -04:00
parent 8fb897d680
commit 5394f0623c

View file

@ -160,8 +160,13 @@
manager: auto
- name: Get OpenSSL version
shell: openssl version | cut -f 2 -d ' '
register: ssl_version
run_once: true
- name: Set OpenSSL version fact
set_fact:
openssl_version: "{{ ansible_facts.packages['openssl'][0]['version'] }}"
openssl_version: "{{ ssl_version.stdout }}"
- name: Build the client's p12
shell: >