Add reloads for new certs in consul
This commit is contained in:
parent
9fa7686534
commit
dce8d35fe4
3 changed files with 12 additions and 0 deletions
|
@ -3,6 +3,16 @@
|
|||
systemd:
|
||||
daemon_reload: True
|
||||
|
||||
- name: reload_consul_debian
|
||||
systemd:
|
||||
name: consul
|
||||
state: reloaded
|
||||
|
||||
- name: reload_consul_fbsd
|
||||
service:
|
||||
name: consul
|
||||
state: reloaded
|
||||
|
||||
- name: restart_consul_debian
|
||||
systemd:
|
||||
name: consul
|
||||
|
|
|
@ -47,6 +47,7 @@
|
|||
VAULT_FORMAT: json
|
||||
register: cert_data
|
||||
when: exp.rc != 0
|
||||
notify: reload_consul
|
||||
|
||||
- name: write cert data to server
|
||||
copy:
|
||||
|
|
|
@ -47,6 +47,7 @@
|
|||
VAULT_FORMAT: json
|
||||
register: cert_data
|
||||
when: exp.rc != 0
|
||||
notify: reload_consul
|
||||
|
||||
- name: write cert data to server
|
||||
copy:
|
||||
|
|
Loading…
Reference in a new issue