mirror of https://github.com/ceph/ceph-ansible.git
37 lines
798 B
YAML
37 lines
798 B
YAML
---
|
|
- name: setup ntpd
|
|
block:
|
|
- name: timedatectl set-ntp no
|
|
command: timedatectl set-ntp no
|
|
- name: install ntp
|
|
package:
|
|
name: ntp
|
|
state: present
|
|
- name: start ntp
|
|
service:
|
|
name: ntp
|
|
enabled: yes
|
|
state: started
|
|
when: ntp_daemon_type == "ntpd"
|
|
|
|
- name: setup chrony
|
|
block:
|
|
- name: timedatectl set-ntp no
|
|
command: timedatectl set-ntp no
|
|
- name: install chrony
|
|
package:
|
|
name: chrony
|
|
state: present
|
|
- name: start chronyd
|
|
service:
|
|
name: chronyd
|
|
enabled: yes
|
|
state: started
|
|
when: ntp_daemon_type == "chronyd"
|
|
|
|
- name: setup timesyncd
|
|
block:
|
|
- name: timedatectl set-ntp on
|
|
command: timedatectl set-ntp on
|
|
when: ntp_daemon_type == "timesyncd"
|