Work around problem with cryptography being upgraded while installing pyOpenSSL (#137)

* Work around problem with cryptography being upgraded while installing pyOpenSSL.

* Avoid another instability.
This commit is contained in:
Felix Fontein
2020-11-03 12:39:58 +01:00
committed by GitHub
parent ec7e4916e5
commit 5ffe97f874
2 changed files with 15 additions and 0 deletions

View File

@@ -35,3 +35,11 @@
command: "{{ ansible_python.executable }} -m OpenSSL.debug"
register: pyopenssl_debug_version
ignore_errors: yes
# Depending on which pyOpenSSL version has been installed, it could be that cryptography has
# been upgraded to a newer version. Make sure to register cryptography_version another time here
# to avoid strange testing behavior due to wrong values of cryptography_version.
- name: Register cryptography version
command: "{{ ansible_python.executable }} -c 'import cryptography; print(cryptography.__version__)'"
register: cryptography_version
ignore_errors: yes # in case cryptography was not installed, and setup_openssl hasn't been run before, ignore errors