-
Notifications
You must be signed in to change notification settings - Fork 95
Open
Labels
Description
CentOS and Alpine don't ship error files (or don't place them in the locations found in defaults.yml). In the defaults.cfg template, we do not configure errorfile directives on these distributions:
ansible-haproxy/templates/defaults.cfg
Lines 52 to 58 in 0dac057
| {% if ansible_distribution != 'CentOS' and ansible_distribution != 'Alpine' %} | |
| {% if haproxy_defaults.errorfile is defined %} | |
| {% for item in haproxy_defaults.errorfile %} | |
| errorfile {{ item.code }} {{ item.file }} | |
| {% endfor %} | |
| {% endif -%} | |
| {% endif -%} |
This prevents users on those distributions from declaring error files using this role.
We need to allow the user to specify that they want to configure the files if they've provided them outside this role.