From 2f81c8f9aed38cec0438b51d8be0cbd75b42a029 Mon Sep 17 00:00:00 2001 From: David Sariel Date: Fri, 20 Aug 2021 19:34:20 +0300 Subject: [PATCH] Fix virtualbmc install error at introspection stage Error: File "/usr/local/lib/python3.6/site-packages/OpenSSL/SSL.py", line 1644, in send with _from_buffer(buf) as data: AttributeError: __enter__ Fix by cleaning leftovers --- roles/patch_rpm/tasks/main.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/roles/patch_rpm/tasks/main.yml b/roles/patch_rpm/tasks/main.yml index 1a2c69a..95dc499 100644 --- a/roles/patch_rpm/tasks/main.yml +++ b/roles/patch_rpm/tasks/main.yml @@ -185,3 +185,21 @@ when: install.component.version|int >= 13 until: task_result is success retries: 3 + + +- name: remove RHEL8 specific packages + when: ansible_os_family == 'RedHat' and ansible_distribution_major_version == '8' | default(false) + block: + # Remove pyOpenSSL and rdopkg from pip for RHEL8 + - name: remove pyOpenSSL and rdopkg from pip + become: yes + pip: + name: + - 'pyOpenSSL' + - 'rdopkg' + state: absent + executable: pip-3.6 + until: task_result is success + retries: 3 + delay: 3 +