Add reloads for new certs in consul

This commit is contained in:
Amarpreet Minhas 2020-09-30 22:40:16 -04:00
parent 9fa7686534
commit dce8d35fe4
3 changed files with 12 additions and 0 deletions

View file

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

View file

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

View file

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