devops-coop / ansible-haproxy

Installs and configure HAProxy
Apache License 2.0
96 stars 97 forks source link

templates/frontend.cfg does not match vars #11

Closed DrStrangepork closed 9 years ago

DrStrangepork commented 9 years ago

The templates/frontend.cfg, lines 34-40, also needs correction. default_backend is not a required option, but this code will save default_backend to the frontends.cfg regardless of whether the variable is set or not. Furthermore, there is no 'item' at this point, so item.default_backend doesn't exist. Finally, there is no 'backends' in the vars either, so 'item.backends' will never be defined, and the code in lines 35-40 will never get processed.