add reload

This commit is contained in:
vincent 2022-03-12 11:17:02 +01:00
parent eeffce0bc0
commit bf470f0886
2 changed files with 4 additions and 0 deletions

View File

@ -1,2 +1,5 @@
--- ---
# handlers file for ansible-consul # handlers file for ansible-consul
- name: reload consul configuration on Linux
command: "consul reload"
listen: "reload consul configuration"

View File

@ -26,6 +26,7 @@
dest: /etc/consul.d/config.hcl dest: /etc/consul.d/config.hcl
owner: consul owner: consul
mode: 0644 mode: 0644
notify: reload consul configuration
- name: ensure service is started - name: ensure service is started
systemd: systemd:
name: "{{ consul_service_name }}" name: "{{ consul_service_name }}"