Merge "handlers: reload instead of restart"

This commit is contained in:
Zuul 2019-04-11 22:20:10 +00:00 committed by Gerrit Code Review
commit 7ae02a38fd
4 changed files with 7 additions and 7 deletions

View File

@ -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

View File

@ -53,6 +53,6 @@
tags:
- haproxy-service-config
notify:
- Restart haproxy
- Reload haproxy
when:
- ansible_selinux.status == "enabled"

View File

@ -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:

View File

@ -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