polytech-ansible-2023/roles/ntp/handlers/main.yml

8 lines
280 B
YAML

---
# handlers are special tasks that you can invoke when something changes.
# in this example you want to invoke this restart handler when the
# configuration of the service changes for example.
- name: "Restart ntp"
ansible.builtin.service:
name: ntp
state: restarted