I am having the same behavior since about 24 hours on version 21.4
TASK [backup_haproxy_conf : Upload files to s3] ********************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: AttributeError: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK'
fatal: [pra-haproxy1 -> 127.0.0.1({{ private_ip_address }})]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\\n File \\"/home/runner/.ansible/tmp/ansible-tmp-1662580960.1664975-55-35395008714411/AnsiballZ_aws_s3.py\\", line 107, in <module>\\n _ansiballz_main()\\n File \\"/home/runner/.ansible/tmp/ansible-tmp-1662580960.1664975-55-35395008714411/AnsiballZ_aws_s3.py\\", line 99, in _ansiballz_main\\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\\n File \\"/home/runner/.ansible/tmp/ansible-tmp-1662580960.1664975-55-35395008714411/AnsiballZ_aws_s3.py\\", line 47, in invoke_module\\n runpy.run_module(mod_name='ansible_collections.amazon.aws.plugins.modules.aws_s3', init_globals=dict(_module_fqn='ansible_collections.amazon.aws.plugins.modules.aws_s3', _modlib_path=modlib_path),\\n File \\"/usr/lib64/python3.8/runpy.py\\", line 207, in run_module\\n return _run_module_code(code, init_globals, run_name, mod_spec)\\n File \\"/usr/lib64/python3.8/runpy.py\\", line 97, in _run_module_code\\n _run_code(code, mod_globals, init_globals,\\n File \\"/usr/lib64/python3.8/runpy.py\\", line 87, in _run_code\\n exec(code, run_globals)\\n File \\"/tmp/ansible_aws_s3_payload_j4i98cxe/ansible_aws_s3_payload.zip/ansible_collections/amazon/aws/plugins/modules/aws_s3.py\\", line 317, in <module>\\n File \\"<frozen importlib._bootstrap>\\", line 991, in _find_and_load\\n File \\"<frozen importlib._bootstrap>\\", line 975, in _find_and_load_unlocked\\n File \\"<frozen importlib._bootstrap>\\", line 655, in _load_unlocked\\n File \\"<frozen importlib._bootstrap>\\", line 618, in _load_backward_compatible\\n File \\"<frozen zipimport>\\", line 259, in load_module\\n File \\"/tmp/ansible_aws_s3_payload_j4i98cxe/ansible_aws_s3_payload.zip/ansible_collections/amazon/aws/plugins/module_utils/core.py\\", line 74, in <module>\\n File \\"<frozen importlib._bootstrap>\\", line 991, in _find_and_load\\n File \\"<frozen importlib._bootstrap>\\", line 975, in _find_and_load_unlocked\\n File \\"<frozen importlib._bootstrap>\\", line 655, in _load_unlocked\\n File \\"<frozen importlib._bootstrap>\\", line 618, in _load_backward_compatible\\n File \\"<frozen zipimport>\\", line 259, in load_module\\n File \\"/tmp/ansible_aws_s3_payload_j4i98cxe/ansible_aws_s3_payload.zip/ansible_collections/amazon/aws/plugins/module_utils/ec2.py\\", line 65, in <module>\\n File \\"/usr/local/lib/python3.8/site-packages/boto3/__init__.py\\", line 17, in <module>\\n from boto3.session import Session\\n File \\"/usr/local/lib/python3.8/site-packages/boto3/session.py\\", line 17, in <module>\\n import botocore.session\\n File \\"/usr/local/lib/python3.8/site-packages/botocore/session.py\\", line 26, in <module>\\n import botocore.client\\n File \\"/usr/local/lib/python3.8/site-packages/botocore/client.py\\", line 17, in <module>\\n from botocore import waiter, xform_name\\n File \\"/usr/local/lib/python3.8/site-packages/botocore/waiter.py\\", line 18, in <module>\\n from botocore.docs.docstring import WaiterDocstring\\n File \\"/usr/local/lib/python3.8/site-packages/botocore/docs/__init__.py\\", line 15, in <module>\\n from botocore.docs.service import ServiceDocumenter\\n File \\"/usr/local/lib/python3.8/site-packages/botocore/docs/service.py\\", line 14, in <module>\\n from botocore.docs.client import ClientDocumenter, ClientExceptionsDocumenter\\n File \\"/usr/local/lib/python3.8/site-packages/botocore/docs/client.py\\", line 14, in <module>\\n from botocore.docs.example import ResponseExampleDocumenter\\n File \\"/usr/local/lib/python3.8/site-packages/botocore/docs/example.py\\", line 13, in <module>\\n from botocore.docs.shape import ShapeDocumenter\\n File \\"/usr/local/lib/python3.8/site-packages/botocore/docs/shape.py\\", line 19, in <module>\\n from botocore.utils import is_json_value_header\\n File \\"/usr/local/lib/python3.8/site-packages/botocore/utils.py\\", line 34, in <module>\\n import botocore.httpsession\\n File \\"/usr/local/lib/python3.8/site-packages/botocore/httpsession.py\\", line 41, in <module>\\n from urllib3.contrib.pyopenssl import orig_util_SSLContext as SSLContext\\n File \\"/usr/lib/python3.8/site-packages/urllib3/contrib/pyopenssl.py\\", line 46, in <module>\\n import OpenSSL.SSL\\n File \\"/usr/local/lib/python3.8/site-packages/OpenSSL/__init__.py\\", line 8, in <module>\\n from OpenSSL import crypto, SSL\\n File \\"/usr/local/lib/python3.8/site-packages/OpenSSL/crypto.py\\", line 1517, in <module>\\n class X509StoreFlags(object):\\n File \\"/usr/local/lib/python3.8/site-packages/OpenSSL/crypto.py\\", line 1537, in X509StoreFlags\\n CB_ISSUER_CHECK = _lib.X509_V_FLAG_CB_ISSUER_CHECK\\nAttributeError: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK'\\n", "module_stdout": "", "msg": "MODULE FAILURE\\nSee stdout/stderr for the exact error", "rc": 1}
Regards,
Michael