mirror of
https://github.com/roles-ansible/ansible_role_ntp.git
synced 2024-08-16 12:59:49 +02:00
notify systemd on directory update
This commit is contained in:
parent
cac94e5c60
commit
b65dfe4504
3 changed files with 3 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
- name: Restart ntp daemons on Linux
|
- name: Restart ntp daemons on Linux
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.service:
|
ansible.builtin.systemd:
|
||||||
name: "{{ ntp_service }}"
|
name: "{{ ntp_service }}"
|
||||||
state: restarted
|
state: restarted
|
||||||
|
|
||||||
|
|
|
@ -17,3 +17,4 @@
|
||||||
recurse: true
|
recurse: true
|
||||||
mode: 'u=rwX,g=rX,o=rX'
|
mode: 'u=rwX,g=rX,o=rX'
|
||||||
owner: "{{ ntp_user }}"
|
owner: "{{ ntp_user }}"
|
||||||
|
notify: "Restart ntp daemons on {{ ansible_system }}"
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
|
|
||||||
- name: Service ntp on Linux
|
- name: Service ntp on Linux
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.service:
|
ansible.builtin.systemd:
|
||||||
name: "{{ ntp_service }}"
|
name: "{{ ntp_service }}"
|
||||||
enabled: true
|
enabled: true
|
||||||
state: started
|
state: started
|
||||||
|
|
Loading…
Reference in a new issue