From c626886ac594dfe2fe8153cefabfc1391e10775c Mon Sep 17 00:00:00 2001 From: mg Date: Sat, 13 Mar 2021 19:50:01 +0100 Subject: [PATCH] chrony: handler (#34) chrony: handler Co-authored-by: Michael Grote Reviewed-on: https://git.mgrote.net/mg/ansible/pulls/34 Co-Authored-By: mg Co-Committed-By: mg --- roles/mgrote.ntp_chrony_client/tasks/main.yml | 2 ++ roles/mgrote.ntp_chrony_server/tasks/main.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/roles/mgrote.ntp_chrony_client/tasks/main.yml b/roles/mgrote.ntp_chrony_client/tasks/main.yml index 5367844c..97930dec 100644 --- a/roles/mgrote.ntp_chrony_client/tasks/main.yml +++ b/roles/mgrote.ntp_chrony_client/tasks/main.yml @@ -19,6 +19,7 @@ name: - chrony state: present + notify: restart_chrony - name: copy chrony config become: yes @@ -43,6 +44,7 @@ mode: 0755 owner: "{{ ntp_chrony_user }}" group: "{{ ntp_chrony_group }}" + notify: restart_chrony - name: set timezone to {{ ntp_chrony_timezone }} become: yes diff --git a/roles/mgrote.ntp_chrony_server/tasks/main.yml b/roles/mgrote.ntp_chrony_server/tasks/main.yml index 5367844c..97930dec 100644 --- a/roles/mgrote.ntp_chrony_server/tasks/main.yml +++ b/roles/mgrote.ntp_chrony_server/tasks/main.yml @@ -19,6 +19,7 @@ name: - chrony state: present + notify: restart_chrony - name: copy chrony config become: yes @@ -43,6 +44,7 @@ mode: 0755 owner: "{{ ntp_chrony_user }}" group: "{{ ntp_chrony_group }}" + notify: restart_chrony - name: set timezone to {{ ntp_chrony_timezone }} become: yes