---
- name: check ntp installation on debian
command: dpkg -s ntp
register: ntp_pkg_query
ignore_errors: true
changed_when: false
when: ansible_os_family == 'Debian'