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:
|
systemd:
|
||||||
daemon_reload: True
|
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
|
- name: restart_consul_debian
|
||||||
systemd:
|
systemd:
|
||||||
name: consul
|
name: consul
|
||||||
|
|
|
@ -47,6 +47,7 @@
|
||||||
VAULT_FORMAT: json
|
VAULT_FORMAT: json
|
||||||
register: cert_data
|
register: cert_data
|
||||||
when: exp.rc != 0
|
when: exp.rc != 0
|
||||||
|
notify: reload_consul
|
||||||
|
|
||||||
- name: write cert data to server
|
- name: write cert data to server
|
||||||
copy:
|
copy:
|
||||||
|
|
|
@ -47,6 +47,7 @@
|
||||||
VAULT_FORMAT: json
|
VAULT_FORMAT: json
|
||||||
register: cert_data
|
register: cert_data
|
||||||
when: exp.rc != 0
|
when: exp.rc != 0
|
||||||
|
notify: reload_consul
|
||||||
|
|
||||||
- name: write cert data to server
|
- name: write cert data to server
|
||||||
copy:
|
copy:
|
||||||
|
|
Loading…
Reference in a new issue