unfortunately the script ends with an error on Ubuntu 20.04.
RUNNING HANDLER [authelia : source .bashrc] ***************************************************************************************************************************************************
changed: [localhost]
RUNNING HANDLER [restart authelia] ************************************************************************************************************************************************************
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: [localhost]: FAILED! => changed=false
module_stderr: |-
Traceback (most recent call last):
File "/root/.ansible/tmp/ansible-tmp-1663928329.0292609-20090-274140630868157/AnsiballZ_docker_container.py", line 107, in <module>
_ansiballz_main()
File "/root/.ansible/tmp/ansible-tmp-1663928329.0292609-20090-274140630868157/AnsiballZ_docker_container.py", line 99, in _ansiballz_main
invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)
File "/root/.ansible/tmp/ansible-tmp-1663928329.0292609-20090-274140630868157/AnsiballZ_docker_container.py", line 47, in invoke_module
runpy.run_module(mod_name='ansible_collections.community.docker.plugins.modules.docker_container', init_globals=dict(_module_fqn='ansible_collections.community.docker.plugins.modules.docker_container', _modlib_path=modlib_path),
File "/usr/lib/python3.8/runpy.py", line 207, in run_module
return _run_module_code(code, init_globals, run_name, mod_spec)
File "/usr/lib/python3.8/runpy.py", line 97, in _run_module_code
_run_code(code, mod_globals, init_globals,
File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/tmp/ansible_docker_container_payload_5bl_ouhh/ansible_docker_container_payload.zip/ansible_collections/community/docker/plugins/modules/docker_container.py", line 1233, in <module>
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 655, in _load_unlocked
File "<frozen importlib._bootstrap>", line 618, in _load_backward_compatible
File "<frozen zipimport>", line 259, in load_module
File "/tmp/ansible_docker_container_payload_5bl_ouhh/ansible_docker_container_payload.zip/ansible_collections/community/docker/plugins/module_utils/module_container/docker_api.py", line 15, in <module>
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 655, in _load_unlocked
File "<frozen importlib._bootstrap>", line 618, in _load_backward_compatible
File "<frozen zipimport>", line 259, in load_module
File "/tmp/ansible_docker_container_payload_5bl_ouhh/ansible_docker_container_payload.zip/ansible_collections/community/docker/plugins/module_utils/common_api.py", line 23, in <module>
File "/usr/lib/python3/dist-packages/requests/__init__.py", line 95, in <module>
from urllib3.contrib import pyopenssl
File "/usr/lib/python3/dist-packages/urllib3/contrib/pyopenssl.py", line 46, in <module>
import OpenSSL.SSL
File "/usr/lib/python3/dist-packages/OpenSSL/__init__.py", line 8, in <module>
from OpenSSL import crypto, SSL
File "/usr/lib/python3/dist-packages/OpenSSL/crypto.py", line 1553, in <module>
class X509StoreFlags(object):
File "/usr/lib/python3/dist-packages/OpenSSL/crypto.py", line 1573, in X509StoreFlags
CB_ISSUER_CHECK = _lib.X509_V_FLAG_CB_ISSUER_CHECK
AttributeError: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK'
module_stdout: ''
msg: |-
MODULE FAILURE
See stdout/stderr for the exact error
rc: 1
NO MORE HOSTS LEFT ****************************************************************************************************************************************************************************
PLAY RECAP ************************************************************************************************************************************************************************************
localhost : ok=58 changed=36 unreachable=0 failed=1 skipped=16 rescued=0 ignored=0
root@localhost:~# show_2fa
show_2fa: command not found
It's a freshly installed Ionos VPS with Ubuntu 20.04. When running the script there is also an error to see before the "Welcome to Ansible Easy VPN"-screen:
# wget https://raw.githubusercontent.com/notthebee/ansible-easy-vpn/main/bootstrap.sh -O bootstrap.sh && bash bootstrap.sh
--2022-09-23 12:28:18-- https://raw.githubusercontent.com/notthebee/ansible-easy-vpn/main/bootstrap.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.111.133, 185.199.108.133, 185.199.110.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.111.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 8688 (8.5K) [text/plain]
Saving to: ‘bootstrap.sh’
bootstrap.sh 100%[=================================================================================================================================>] 8.48K --.-KB/s in 0s
2022-09-23 12:28:18 (52.5 MB/s) - ‘bootstrap.sh’ saved [8688/8688]
Hit:1 https://download.docker.com/linux/ubuntu focal InRelease
Hit:2 http://archive.ubuntu.com/ubuntu focal InRelease
Hit:3 http://security.ubuntu.com/ubuntu focal-security InRelease
Hit:4 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:5 http://archive.ubuntu.com/ubuntu focal-backports InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3 is already the newest version (3.8.2-0ubuntu2).
python3-bcrypt is already the newest version (3.1.7-2ubuntu1).
python3-passlib is already the newest version (1.7.2-1).
python3-setuptools is already the newest version (45.2.0-1).
aptitude is already the newest version (0.8.12-1ubuntu4).
python3-wheel is already the newest version (0.34.2-1).
curl is already the newest version (7.68.0-1ubuntu2.13).
git is already the newest version (1:2.25.1-1ubuntu3.5).
python3-apt is already the newest version (2.0.0ubuntu0.20.04.8).
software-properties-common is already the newest version (0.99.9.8).
certbot is already the newest version (0.40.0-1ubuntu0.1).
dnsutils is already the newest version (1:9.16.1-0ubuntu2.11).
python3-pip is already the newest version (20.0.2-5ubuntu1.6).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Traceback (most recent call last):
File "/usr/bin/pip3", line 11, in <module>
load_entry_point('pip==20.0.2', 'console_scripts', 'pip3')()
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 490, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2854, in load_entry_point
return ep.load()
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2445, in load
return self.resolve()
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2451, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/usr/lib/python3/dist-packages/pip/_internal/cli/main.py", line 10, in <module>
from pip._internal.cli.autocompletion import autocomplete
File "/usr/lib/python3/dist-packages/pip/_internal/cli/autocompletion.py", line 9, in <module>
from pip._internal.cli.main_parser import create_main_parser
File "/usr/lib/python3/dist-packages/pip/_internal/cli/main_parser.py", line 7, in <module>
from pip._internal.cli import cmdoptions
File "/usr/lib/python3/dist-packages/pip/_internal/cli/cmdoptions.py", line 24, in <module>
from pip._internal.exceptions import CommandError
File "/usr/lib/python3/dist-packages/pip/_internal/exceptions.py", line 10, in <module>
from pip._vendor.six import iteritems
File "/usr/lib/python3/dist-packages/pip/_vendor/__init__.py", line 65, in <module>
vendored("cachecontrol")
File "/usr/lib/python3/dist-packages/pip/_vendor/__init__.py", line 36, in vendored
__import__(modulename, globals(), locals(), level=0)
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 655, in _load_unlocked
File "<frozen importlib._bootstrap>", line 618, in _load_backward_compatible
File "<frozen zipimport>", line 259, in load_module
File "/usr/share/python-wheels/CacheControl-0.12.6-py2.py3-none-any.whl/cachecontrol/__init__.py", line 9, in <module>
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 655, in _load_unlocked
File "<frozen importlib._bootstrap>", line 618, in _load_backward_compatible
File "<frozen zipimport>", line 259, in load_module
File "/usr/share/python-wheels/CacheControl-0.12.6-py2.py3-none-any.whl/cachecontrol/wrapper.py", line 1, in <module>
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 655, in _load_unlocked
File "<frozen importlib._bootstrap>", line 618, in _load_backward_compatible
File "<frozen zipimport>", line 259, in load_module
File "/usr/share/python-wheels/CacheControl-0.12.6-py2.py3-none-any.whl/cachecontrol/adapter.py", line 5, in <module>
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 655, in _load_unlocked
File "<frozen importlib._bootstrap>", line 618, in _load_backward_compatible
File "<frozen zipimport>", line 259, in load_module
File "/usr/share/python-wheels/requests-2.22.0-py2.py3-none-any.whl/requests/__init__.py", line 95, in <module>
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 655, in _load_unlocked
File "<frozen importlib._bootstrap>", line 618, in _load_backward_compatible
File "<frozen zipimport>", line 259, in load_module
File "/usr/share/python-wheels/urllib3-1.25.8-py2.py3-none-any.whl/urllib3/contrib/pyopenssl.py", line 46, in <module>
File "/usr/lib/python3/dist-packages/OpenSSL/__init__.py", line 8, in <module>
from OpenSSL import crypto, SSL
File "/usr/lib/python3/dist-packages/OpenSSL/crypto.py", line 1553, in <module>
class X509StoreFlags(object):
File "/usr/lib/python3/dist-packages/OpenSSL/crypto.py", line 1573, in X509StoreFlags
CB_ISSUER_CHECK = _lib.X509_V_FLAG_CB_ISSUER_CHECK
AttributeError: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK'
^CTraceback (most recent call last):
File "/usr/local/bin/ansible-galaxy", line 5, in <module>
from ansible.cli.galaxy import main
File "/usr/local/lib/python3.8/dist-packages/ansible/cli/__init__.py", line 52, in <module>
from ansible.inventory.manager import InventoryManager
File "/usr/local/lib/python3.8/dist-packages/ansible/inventory/manager.py", line 39, in <module>
from ansible.utils.helpers import deduplicate_list
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 971, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 914, in _find_spec
File "/usr/local/lib/python3.8/dist-packages/ansible/utils/collection_loader/_collection_finder.py", line 240, in find_spec
loader = self._get_loader(fullname, path)
File "/usr/local/lib/python3.8/dist-packages/ansible/utils/collection_loader/_collection_finder.py", line 230, in _get_loader
return initialize_loader(fullname=fullname, path_list=path)
File "/usr/local/lib/python3.8/dist-packages/ansible/utils/collection_loader/_collection_finder.py", line 742, in __init__
builtin_meta = _get_collection_metadata('ansible.builtin')
File "/usr/local/lib/python3.8/dist-packages/ansible/utils/collection_loader/_collection_finder.py", line 1140, in _get_collection_metadata
collection_pkg = import_module('ansible_collections.' + collection_name)
File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "/usr/local/lib/python3.8/dist-packages/ansible/utils/collection_loader/_collection_finder.py", line 632, in exec_module
self._load_module(module)
File "/usr/local/lib/python3.8/dist-packages/ansible/utils/collection_loader/_collection_finder.py", line 621, in _load_module
routing_dict = _meta_yml_to_dict(raw_routing, (collection_name, 'runtime.yml'))
File "/usr/local/lib/python3.8/dist-packages/ansible/utils/collection_loader/_collection_meta.py", line 27, in _meta_yml_to_dict
routing_dict = yaml_load(yaml_string_data)
File "/usr/lib/python3/dist-packages/yaml/__init__.py", line 114, in load
return loader.get_single_data()
File "/usr/lib/python3/dist-packages/yaml/constructor.py", line 49, in get_single_data
node = self.get_single_node()
File "ext/_yaml.pyx", line 707, in _yaml.CParser.get_single_node
File "ext/_yaml.pyx", line 725, in _yaml.CParser._compose_document
File "ext/_yaml.pyx", line 776, in _yaml.CParser._compose_node
File "ext/_yaml.pyx", line 890, in _yaml.CParser._compose_mapping_node
File "ext/_yaml.pyx", line 776, in _yaml.CParser._compose_node
File "ext/_yaml.pyx", line 890, in _yaml.CParser._compose_mapping_node
File "ext/_yaml.pyx", line 776, in _yaml.CParser._compose_node
File "ext/_yaml.pyx", line 890, in _yaml.CParser._compose_mapping_node
File "ext/_yaml.pyx", line 776, in _yaml.CParser._compose_node
File "ext/_yaml.pyx", line 883, in _yaml.CParser._compose_mapping_node