haproxy: validate is a module attribute
This commit is contained in:
parent
e614fe4d85
commit
66ab052ac7
|
@ -23,12 +23,12 @@
|
||||||
src: "{{ item }}"
|
src: "{{ item }}"
|
||||||
dest: /etc/haproxy/haproxy.cfg
|
dest: /etc/haproxy/haproxy.cfg
|
||||||
force: yes
|
force: yes
|
||||||
|
validate: "haproxy -c -f %s"
|
||||||
with_first_found:
|
with_first_found:
|
||||||
- "templates/haproxy/haproxy.{{ inventory_hostname }}.cfg.j2"
|
- "templates/haproxy/haproxy.{{ inventory_hostname }}.cfg.j2"
|
||||||
- "templates/haproxy/haproxy.{{ host_group }}.cfg.j2"
|
- "templates/haproxy/haproxy.{{ host_group }}.cfg.j2"
|
||||||
- "templates/haproxy/haproxy.default.cfg.j2"
|
- "templates/haproxy/haproxy.default.cfg.j2"
|
||||||
- "haproxy.default.cfg.j2"
|
- "haproxy.default.cfg.j2"
|
||||||
validate: "haproxy -c -f %s"
|
|
||||||
notify: reload haproxy
|
notify: reload haproxy
|
||||||
tags:
|
tags:
|
||||||
- haproxy
|
- haproxy
|
||||||
|
|
Loading…
Reference in a new issue