Skip to content

Commit 643a116

Browse files
author
Jason Travis
authored
Validate haproxy.cfg template
1 parent 857f7db commit 643a116

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tasks/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
src: haproxy.cfg.j2
3131
dest: /etc/haproxy/haproxy.cfg
3232
mode: 0644
33+
validate: haproxy -f /etc/haproxy/haproxy.cfg -c -q
3334
notify: restart haproxy
3435

3536
- name: Ensure HAProxy is started and enabled on boot.

0 commit comments

Comments
 (0)