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:
|
{% 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.
CentOS and Alpine don't ship error files (or don't place them in the locations found in
defaults.yml). In thedefaults.cfgtemplate, we do not configureerrorfiledirectives on these distributions:ansible-haproxy/templates/defaults.cfg
Lines 52 to 58 in 0dac057
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.