Skip to content

Commit

Permalink
Fixed issue with getting openssl version from existing fact, get it w…
Browse files Browse the repository at this point in the history
…ith shell script instead. This may not work in Windows (trailofbits#14558)
  • Loading branch information
ExtremeModerate committed Jul 4, 2023
1 parent 8fb897d commit 5394f06
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion roles/strongswan/tasks/openssl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: >
Expand Down

0 comments on commit 5394f06

Please sign in to comment.