haproxy: validate is a module attribute

This commit is contained in:
Jérémy Lecour 2019-05-15 17:35:20 +02:00 committed by Jérémy Lecour
parent e614fe4d85
commit 66ab052ac7
1 changed files with 1 additions and 1 deletions

View File

@ -23,12 +23,12 @@
src: "{{ item }}"
dest: /etc/haproxy/haproxy.cfg
force: yes
validate: "haproxy -c -f %s"
with_first_found:
- "templates/haproxy/haproxy.{{ inventory_hostname }}.cfg.j2"
- "templates/haproxy/haproxy.{{ host_group }}.cfg.j2"
- "templates/haproxy/haproxy.default.cfg.j2"
- "haproxy.default.cfg.j2"
validate: "haproxy -c -f %s"
notify: reload haproxy
tags:
- haproxy