Sorry, I pasted the wrong command for removing pyopenssl. If it is removed via apt, pyOpenSSL-16.1.0 remains installed and Horizon keeps suffering from the issue. Therefore, one needs to remove pyopenssl with pip:
ansible -i inventory -m shell -a 'pip uninstall -y pyopenssl; service apache2 restart' horizon_all
Sorry, I pasted the wrong command for removing pyopenssl. If it is removed via apt, pyOpenSSL-16.1.0 remains installed and Horizon keeps suffering from the issue. Therefore, one needs to remove pyopenssl with pip:
ansible -i inventory -m shell -a 'pip uninstall -y pyopenssl; service apache2 restart' horizon_all