Exceptions when trying to use apache2_mod_proxy

I’m trying to manage an apache load balancer with apache2_mod_proxy, and am getting the following error. If someone could help that would be very much appreciated.

I’ve submitted it as a bug with more information, here. https://github.com/ansible/ansible/issues/54259

TASK [apache2_mod_proxy] ********************************************************************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: TypeError: first argument must be string or compiled pattern

fatal: [localhost]: FAILED! => {“changed”: false, “module_stderr”: "Traceback (most recent call last):

File "/root/.ansible/tmp/ansible-tmp-1553280134.74-29374324244571/AnsiballZ_apache2_mod_proxy.py", line 114, in
_ansiballz_main()
File "/root/.ansible/tmp/ansible-tmp-1553280134.74-29374324244571/AnsiballZ_apache2_mod_proxy.py", line 106, in _ansiballz_main
invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)
File "/root/.ansible/tmp/ansible-tmp-1553280134.74-29374324244571/AnsiballZ_apache2_mod_proxy.py", line 49, in invoke_module
imp.load_module(‘main’, mod, module, MOD_DESC)
File "/tmp/ansible_apache2_mod_proxy_payload_6P4Nj2/main.py", line 444, in
File "/tmp/ansible_apache2_mod_proxy_payload_6P4Nj2/main.py", line 388, in main
File "/tmp/ansible_apache2_mod_proxy_payload_6P4Nj2/main.py", line 271, in get_member_status
File "/tmp/ansible_apache2_mod_proxy_payload_6P4Nj2/main.py", line 260, in get_member_attributes
File "/usr/lib64/python2.7/re.py", line 142, in search
return _compile(pattern, flags).search(string)
File "/usr/lib64/python2.7/re.py", line 238, in _compile
raise TypeError, "first argument must be string or compiled pattern"
TypeError: first argument must be string or compiled pattern
", “module_stdout”: “”, “msg”: “MODULE FAILURE
See stdout/stderr for the exact error”, “rc”: 1}

Hi,

First point, did you install "BeautifulSoup python module" as written in documentation ?

Seems you can install this module with EPEL repo (https://centos.pkgs.org/7/epel-x86_64/python-BeautifulSoup-3.2.1-7.el7.noarch.rpm.html)

Regards,

JYL

I installed it the following way, which installed version 3.2.1

wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum install ./epel-release-latest-*.noarch.rpm
yum -y install python-pip
pip install beautifulsoup

Regards,

Yes, the server I’m pointing at is a production server working as a load balancer for Genesys Web Services.