Fix haproxy-service-config tag

haproxy-service-config tag was not assembling service configs before
restarting haproxy.

Change-Id: I840a58d5fb7cfc9f4f71924211a6c3c6e4438359
This commit is contained in:
Ramon Melero 2017-04-02 02:40:19 -05:00
parent 4e9dd2ab5a
commit 7be2219ea7
3 changed files with 10 additions and 10 deletions

View File

@ -18,6 +18,14 @@
cat {{ haproxy_ssl_cert }} {{ haproxy_user_ssl_ca_cert is defined | ternary(haproxy_ssl_ca_cert,'') }} {{ haproxy_ssl_key }} > {{ haproxy_ssl_pem }}
notify: Restart haproxy
- name: Regenerate haproxy configuration
assemble:
src: "/etc/haproxy/conf.d"
dest: "/etc/haproxy/haproxy.cfg"
notify: Restart haproxy
tags:
- haproxy-general-config
- name: Restart haproxy
service:
name: "haproxy"

View File

@ -43,17 +43,9 @@
tags:
- haproxy-service-config
- name: Regenerate haproxy configuration
assemble:
src: "/etc/haproxy/conf.d"
dest: "/etc/haproxy/haproxy.cfg"
notify: Restart haproxy
tags:
- haproxy-general-config
- name: Enable haproxy services
service:
name: "haproxy"
enabled: "yes"
tags:
- haproxy-enable-service-config
- haproxy-enable-service-config

View File

@ -24,7 +24,7 @@
(item.service.haproxy_backup_nodes is defined and
item.service.haproxy_backup_nodes | length > 0)
- item.service.haproxy_service_enabled | default('True') | bool
notify: Restart haproxy
notify: Regenerate haproxy configuration
tags:
- haproxy-service-config