mirror of https://github.com/ceph/ceph-ansible.git
14 lines
269 B
YAML
14 lines
269 B
YAML
|
---
|
||
|
- name: check ntp installation on redhat
|
||
|
command: rpm -q ntp
|
||
|
register: ntp_pkg_query
|
||
|
ignore_errors: true
|
||
|
always_run: true
|
||
|
changed_when: false
|
||
|
when: ansible_os_family == 'RedHat'
|
||
|
|
||
|
- name: install ntp on redhat
|
||
|
package:
|
||
|
name: ntp
|
||
|
state: present
|