Skip to content
Snippets Groups Projects
Commit eff44ec6 authored by Gilquin's avatar Gilquin
Browse files

build: correct buggy OpenSSL Python package

The previous ansible playbook configuration was failing with the following error due to a missconfigured OpenSSL Python package:

> File "/usr/lib/python3/dist-packages/OpenSSL/crypto.py", line 1571, in X509StoreFlags
>     NOTIFY_POLICY = _lib.X509_V_FLAG_NOTIFY_POLICY
> AttributeError: module 'lib' has no attribute 'X509_V_FLAG_NOTIFY_POLICY'

Two additional tasks are added in the new configuration file. The first one removes the OpenSSL package files. The second one force resintalls the pyopenssl package.
parent af04600f
No related branches found
No related tags found
1 merge request!3build: correct buggy OpenSSL Python package
- hosts: all
tasks:
- name: Delete buggy OpenSSL python package
ansible.builtin.file:
path: /usr/lib/python3/dist-packages/OpenSSL
state: absent
- name: Reinstall pyopenssl
ansible.builtin.pip:
executable: pip3
name: pyopenssl
state: forcereinstall
- name: Update the system
apt:
upgrade: dist
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment