Merge "handlers: reload instead of restart"
This commit is contained in:
commit
7ae02a38fd
|
@ -16,20 +16,20 @@
|
|||
- name: regen pem
|
||||
shell: >
|
||||
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: Reload haproxy
|
||||
|
||||
- name: Regenerate haproxy configuration
|
||||
assemble:
|
||||
src: "/etc/haproxy/conf.d"
|
||||
dest: "/etc/haproxy/haproxy.cfg"
|
||||
notify: Restart haproxy
|
||||
notify: Reload haproxy
|
||||
tags:
|
||||
- haproxy-general-config
|
||||
|
||||
- name: Restart haproxy
|
||||
- name: Reload haproxy
|
||||
service:
|
||||
name: "haproxy"
|
||||
state: "restarted"
|
||||
state: "reloaded"
|
||||
enabled: yes
|
||||
daemon_reload: yes
|
||||
|
||||
|
|
|
@ -53,6 +53,6 @@
|
|||
tags:
|
||||
- haproxy-service-config
|
||||
notify:
|
||||
- Restart haproxy
|
||||
- Reload haproxy
|
||||
when:
|
||||
- ansible_selinux.status == "enabled"
|
||||
|
|
|
@ -68,7 +68,7 @@
|
|||
dest: "/etc/ssl/private/haproxy.pem"
|
||||
regexp: '(privkey|fullchain).pem$'
|
||||
notify:
|
||||
- Restart haproxy
|
||||
- Reload haproxy
|
||||
|
||||
- name: Create letsencrypt_renew file
|
||||
template:
|
||||
|
|
|
@ -8,4 +8,4 @@
|
|||
cat /etc/letsencrypt/live/{{ external_lb_vip_address }}/{fullchain,privkey}.pem \
|
||||
> /etc/ssl/private/haproxy.pem
|
||||
|
||||
systemctl restart haproxy
|
||||
systemctl reload haproxy
|
||||
|
|
Loading…
Reference in New Issue