1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_ntp.git synced 2024-08-16 12:59:49 +02:00

Merge pull request #18 from roles-ansible/ntf

notify systemd on directory update
This commit is contained in:
L3D 2023-11-28 03:50:39 +01:00 committed by GitHub
commit 09864d03a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View file

@ -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

View file

@ -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 }}"

View file

@ -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