diff --git a/roles/strongswan/tasks/openssl.yml b/roles/strongswan/tasks/openssl.yml index 83a331fe9..1ffed904b 100644 --- a/roles/strongswan/tasks/openssl.yml +++ b/roles/strongswan/tasks/openssl.yml @@ -160,7 +160,10 @@ manager: auto - name: Get OpenSSL version - shell: openssl version | cut -f 2 -d ' ' + shell: | + set -o pipefail + {{ openssl_bin }} version | + cut -f 2 -d ' ' register: ssl_version run_once: true