Skip to content

Commit

Permalink
Merge pull request #77 from asosso/haproxy-reload
Browse files Browse the repository at this point in the history
Add var haproxy_restart_mode used by handler
  • Loading branch information
tersmitten authored May 29, 2018
2 parents 51bb203 + b30e918 commit 40e91ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ haproxy_dependencies:
state: latest
haproxy_install: []

haproxy_restart_handler_state: restarted

haproxy_conf_template: "etc/haproxy/haproxy.cfg.j2"

# global section
Expand Down
2 changes: 1 addition & 1 deletion handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
- name: restart haproxy
service:
name: haproxy
state: restarted
state: "{{ haproxy_restart_handler_state }}"
when: service_default_state | default('started') == 'started'

0 comments on commit 40e91ed

Please sign in to comment.