SimpliField / ansible-haproxy

Ansible role to setup HAProxy
1 stars 3 forks source link

Having an error to setup frontend and backend #4

Open fabianochagas opened 4 years ago

fabianochagas commented 4 years ago

Hi, I'm having this error:

failed: [lb01] (item=dict_keys(['http_front'])) => { "ansible_loop_var": "item", "changed": false, "item": "dict_keys(['http_front'])", "msg": "AnsibleUndefinedVariable: 'dict object' has no attribute \"dict_keys(['http_front'])\"" }

I'm using ubuntu18, Ansible 2.9.3, python 2.7

as a try, I edited the role on mayn.yml file:

SebastienElet commented 4 years ago

Hello, thanks a lot for reporting an issue.

I'm not using this role, but when I released it, I was able to make it works on vagrant (see https://github.com/SimpliField/ansible-vagrant-examples/blob/master/haproxy/playbook.yml)

I will try with ansible > 2.9 to see if I can reproduce