Add handlers

handler
Eamonn Travers 6 years ago
parent e80f759d43
commit 27d91b389d
  1. 5
      playbook.yml
  2. 5
      roles/ntp/handlers/main.yml
  3. 1
      roles/ntp/tasks/main.yml

@ -1,9 +1,4 @@
--- ---
- hosts: all
roles:
- hosts
- ssh-keyonly
- hosts: sysd - hosts: sysd
roles: roles:
- ntp - ntp

@ -0,0 +1,5 @@
---
- name: Restart NTP
service:
name: "{{ ntp_service_name }}"
state: restarted

@ -12,6 +12,7 @@
owner: root owner: root
group: root group: root
backup: yes backup: yes
notify: Restart NTP
- name: Restart Service - name: Restart Service
service: service:

Loading…
Cancel
Save