diff --git a/infra/ansible/roles/haproxy/tasks/main.yml b/infra/ansible/roles/haproxy/tasks/main.yml index 3e72a2700..d5c3ba52e 100644 --- a/infra/ansible/roles/haproxy/tasks/main.yml +++ b/infra/ansible/roles/haproxy/tasks/main.yml @@ -33,7 +33,10 @@ owner: root group: haproxy mode: "0640" - validate: "haproxy -f %s -c -q" + # No -q so the actual validation error reaches the operator's + # console. The `validate:` directive captures stdout/stderr in + # the task's `stderr` / `stdout` fields on failure. + validate: "haproxy -f %s -c" register: haproxy_config notify: Reload haproxy tags: [haproxy, config]