Le 28/03/2019 à 17:05, Jeff Sondag a écrit :
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 <module>
_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 <module>
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}
-----------------------------------------------------------------------------
My playbook:
- name: test apache load balancer management
hosts: localhost
gather_facts: no
tasks:
- apache2_mod_proxy:
balancer_vhost: 10.10.20.30
tls: yes
validate_certs: no
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
--
You received this message because you are subscribed to the Google Groups "Ansible
Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/2830ce38-e684-10cf-a778-30754500baad%40lenhof.eu.org.
For more options, visit https://groups.google.com/d/optout.