ceph-ansible/roles/ceph-docker-common/tasks/checks/check_ntp_debian.yml

15 lines
274 B
YAML

---
- name: check ntp installation on debian
command: dpkg -s ntp
register: ntp_pkg_query
ignore_errors: true
check_mode: no
changed_when: false
when:
- ansible_os_family == 'Debian'
- name: install ntp on debian
package:
name: ntp
state: present