Open fabianochagas opened 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
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:
name: "setup frontend" template: src: "frontend.cfg.j2" dest: "{{ haproxy_config_path }}/frontend.d/{{ item }}.cfg" with_items: "{{ haproxy_frontends }}" <-- I removed the ".keys()"
name: "setup backend" template: src: "backend.cfg.j2" dest: "{{ haproxy_config_path }}/backend.d/{{ item }}.cfg" with_items: "{{ haproxy_backends }}" <-- I removed the ".keys()"