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

18 lines
298 B
YAML

---
- name: check ntp installation on redhat
command: rpm -q ntp
args:
warn: no
register: ntp_pkg_query
ignore_errors: true
changed_when: false
when:
- ansible_os_family == 'RedHat'
tags:
- always
- name: install ntp on redhat
package:
name: ntp
state: present