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:
parent
4e9dd2ab5a
commit
7be2219ea7
@ -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 }}
|
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
|
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
|
- name: Restart haproxy
|
||||||
service:
|
service:
|
||||||
name: "haproxy"
|
name: "haproxy"
|
||||||
|
@ -43,14 +43,6 @@
|
|||||||
tags:
|
tags:
|
||||||
- haproxy-service-config
|
- 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
|
- name: Enable haproxy services
|
||||||
service:
|
service:
|
||||||
name: "haproxy"
|
name: "haproxy"
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
(item.service.haproxy_backup_nodes is defined and
|
(item.service.haproxy_backup_nodes is defined and
|
||||||
item.service.haproxy_backup_nodes | length > 0)
|
item.service.haproxy_backup_nodes | length > 0)
|
||||||
- item.service.haproxy_service_enabled | default('True') | bool
|
- item.service.haproxy_service_enabled | default('True') | bool
|
||||||
notify: Restart haproxy
|
notify: Regenerate haproxy configuration
|
||||||
tags:
|
tags:
|
||||||
- haproxy-service-config
|
- haproxy-service-config
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user