Skip to content

Commit

Permalink
handlers: without token we need to restart consul
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Sokołowski <[email protected]>
  • Loading branch information
jakubgs committed Feb 15, 2022
1 parent 61a248a commit ac9796d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
5 changes: 0 additions & 5 deletions handlers/main.yml

This file was deleted.

5 changes: 3 additions & 2 deletions tasks/darwin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
changed_when: false

- name: Reload consul
command: '/usr/local/bin/consul reload'
community.general.launchd:
name: 'consul'
state: 'restarted'
when: consul_config.changed
changed_when: false
5 changes: 3 additions & 2 deletions tasks/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
changed_when: false

- name: Reload consul
command: 'consul reload'
service:
name: 'consul'
state: 'reloaded'
when: consul_config.changed
changed_when: false
5 changes: 3 additions & 2 deletions tasks/win32nt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
changed_when: false

- name: Reload consul
win_command: 'C:/consul/consul.exe reload'
win_service:
name: 'consul'
state: 'restarted'
when: consul_config.changed
changed_when: false

0 comments on commit ac9796d

Please sign in to comment.