# Exceptions when trying to use apache2\_mod\_proxy

**URL:** <https://forum.ansible.com/t/exceptions-when-trying-to-use-apache2-mod-proxy/29961>\
**Category:** AWX Project\
**Created:** [March 22, 2019, 7:01pm UTC](https://forum.ansible.com/t/exceptions-when-trying-to-use-apache2-mod-proxy/29961 "2019-03-22T19:01:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jeff\_Sondag](https://avatars.discourse-cdn.com/v4/letter/j/e495f1/32.png) [@Jeff\_Sondag](https://forum.ansible.com/u/Jeff_Sondag)\
**Post date:** [March 22, 2019, 7:01pm UTC](https://forum.ansible.com/t/exceptions-when-trying-to-use-apache2-mod-proxy/29961/1 "2019-03-22T19:01:08Z")

</div>

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

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}

---

<div class="post-metadata">

**Author:** ![matburt](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/matburt/32/3612_2.png) [@matburt](https://forum.ansible.com/u/matburt)\
**Post date:** [March 22, 2019, 7:26pm UTC](https://forum.ansible.com/t/exceptions-when-trying-to-use-apache2-mod-proxy/29961/2 "2019-03-22T19:26:11Z")

</div>

You’re better off asking on the Ansible project mailing list.
