Browse Source

haproxy: add another variable for configuration

pull/94/head
Jérémy Lecour 2 years ago
committed by Jérémy Lecour
parent
commit
7fe89d2419
  1. 1
      haproxy/defaults/main.yml
  2. 1
      haproxy/tasks/main.yml

1
haproxy/defaults/main.yml

@ -2,4 +2,5 @@
# backward compatibility with a previously used variable
haproxy_backports: "{{ haproxy_jessie_backports | default(false, true) }}"
haproxy_stats_url: "http://127.0.0.1:8080/"
haproxy_update_config: True
haproxy_force_config: True

1
haproxy/tasks/main.yml

@ -30,6 +30,7 @@
- "templates/haproxy/haproxy.default.cfg.j2"
- "haproxy.default.cfg.j2"
notify: reload haproxy
when: "{{ haproxy_update_config }}"
tags:
- haproxy
- config

Loading…
Cancel
Save