chrony: handler (#34)

chrony: handler

Co-authored-by: Michael Grote <michael.grote@posteo.de>
Reviewed-on: mg/ansible#34
Co-Authored-By: mg <mg@noreply.git.mgrote.net>
Co-Committed-By: mg <mg@noreply.git.mgrote.net>
This commit is contained in:
Michael Grote 2021-03-13 19:50:01 +01:00
parent 435b396431
commit c626886ac5
2 changed files with 4 additions and 0 deletions

View file

@ -19,6 +19,7 @@
name: name:
- chrony - chrony
state: present state: present
notify: restart_chrony
- name: copy chrony config - name: copy chrony config
become: yes become: yes
@ -43,6 +44,7 @@
mode: 0755 mode: 0755
owner: "{{ ntp_chrony_user }}" owner: "{{ ntp_chrony_user }}"
group: "{{ ntp_chrony_group }}" group: "{{ ntp_chrony_group }}"
notify: restart_chrony
- name: set timezone to {{ ntp_chrony_timezone }} - name: set timezone to {{ ntp_chrony_timezone }}
become: yes become: yes

View file

@ -19,6 +19,7 @@
name: name:
- chrony - chrony
state: present state: present
notify: restart_chrony
- name: copy chrony config - name: copy chrony config
become: yes become: yes
@ -43,6 +44,7 @@
mode: 0755 mode: 0755
owner: "{{ ntp_chrony_user }}" owner: "{{ ntp_chrony_user }}"
group: "{{ ntp_chrony_group }}" group: "{{ ntp_chrony_group }}"
notify: restart_chrony
- name: set timezone to {{ ntp_chrony_timezone }} - name: set timezone to {{ ntp_chrony_timezone }}
become: yes become: yes