Skip to content

Commit

Permalink
Refactor daemon reload task as handler (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
teddyphreak authored Jun 20, 2024
1 parent 8457dc3 commit 377121b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion galaxy.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
namespace: nephelaiio
name: consul
version: 0.1.0
version: 0.1.1
readme: README.md
authors:
- Ted Cook <[email protected]>
Expand Down
10 changes: 6 additions & 4 deletions playbooks/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,6 @@
- unzip
- acl

- name: Force daemon reload
ansible.builtin.systemd_service:
daemon_reload: true

- name: Release Consul package holds
when:
- _consul_release is defined
Expand Down Expand Up @@ -144,3 +140,9 @@
minute: "{{ _consul_backup_minutes }}"
hour: "{{ _consul_backup_hours }}"
day: "{{ _consul_backup_days }}"

handlers:
- name: Force daemon reload
ansible.builtin.systemd_service:
daemon_reload: true
listen: restart consul

0 comments on commit 377121b

Please sign in to comment.