Skip to content

Commit

Permalink
F #src 7364 expand openssl error fix (#575)
Browse files Browse the repository at this point in the history
* include any X509_V_FLAG_.* error in openssl fix 

e.g:
X509_V_FLAG_NOTIFY_POLICY
X509_V_FLAG_CB_ISSUER_CHECK
X509_V_FLAG_OF_GONDOR

* Update install_python3.yml

* Update main.yml
  • Loading branch information
carebare47 authored Feb 6, 2024
1 parent 19caeb8 commit 5c86d55
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ansible/playbooks/install_python3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
update_cache: yes
when:
- pip_status.rc != 0
- '"module ''lib'' has no attribute ''X509_V_FLAG_CB_ISSUER_CHECK''" not in pip_status.stderr'
- not pip_status.stderr | regex_search("module 'lib' has no attribute 'X509_V_FLAG_.*")
become: yes

# This checks for a condition where pip3 is installed but not working due to an issue with a criptography library
Expand All @@ -70,7 +70,7 @@
register: output
when:
- pip_status.rc != 0
- '"module ''lib'' has no attribute ''X509_V_FLAG_CB_ISSUER_CHECK''" in pip_status.stderr'
- pip_status.stderr | regex_search("module 'lib' has no attribute 'X509_V_FLAG_.*")
become: yes

- name: Set Python 3 variable
Expand Down
2 changes: 1 addition & 1 deletion ansible/roles/docker/ecr/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
raw: 'apt-get -y update && apt-get purge -y python3-openssl'
register: output
when:
- '"module ''lib'' has no attribute ''X509_V_FLAG_CB_ISSUER_CHECK''" in ansible_failed_result.stderr'
- ansible_failed_result.stderr | regex_search("module 'lib' has no attribute 'X509_V_FLAG_.*")
become: yes

- name: Re-try install Python dependencies (not in conda)
Expand Down

0 comments on commit 5c86d55

Please sign in to comment.