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


Did you enabled balancer-manager as written in documentation ?

https://httpd.apache.org/docs/2.4/mod/mod_proxy_balancer.html

Regards,

--
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/c0a9ae3b-79c4-f903-f747-06dc1b2b7c13%40lenhof.eu.org.
For more options, visit https://groups.google.com/d/optout.

Reply via email to