blob: 5a8403f687b3c301e721a500e192a616598e99fe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
---
- name: Set clock facts
openshift_facts:
role: clock
local_facts:
enabled: "{{ openshift_clock_enabled | default(None) }}"
- name: Install ntp package
action: "{{ ansible_pkg_mgr }} name=ntp state=present"
when: openshift.clock.enabled | bool and not openshift.clock.chrony_installed | bool
- name: Start and enable ntpd/chronyd
shell: timedatectl set-ntp true
when: openshift.clock.enabled | bool
|