summaryrefslogtreecommitdiffstats
path: root/roles/chrony/tasks/main.yml
diff options
context:
space:
mode:
authorMatt Woodson <mwoodson@gmail.com>2016-01-18 15:49:15 -0500
committerMatt Woodson <mwoodson@gmail.com>2016-01-18 15:49:15 -0500
commiteb96ea3556824ec6f12443b2ded6d71c18c11caa (patch)
treefd3759e9c2ed4d26dcf33491dc2750cd6f490cbc /roles/chrony/tasks/main.yml
parent3bed4d0c4bda1b6332ec547502663d09e98b89d1 (diff)
parentd6a42ecaf39ba679a15ceb4e85832c45a8997640 (diff)
downloadopenshift-eb96ea3556824ec6f12443b2ded6d71c18c11caa.tar.gz
openshift-eb96ea3556824ec6f12443b2ded6d71c18c11caa.tar.bz2
openshift-eb96ea3556824ec6f12443b2ded6d71c18c11caa.tar.xz
openshift-eb96ea3556824ec6f12443b2ded6d71c18c11caa.zip
Merge pull request #1220 from openshift/master
Merge master into prod
Diffstat (limited to 'roles/chrony/tasks/main.yml')
-rw-r--r--roles/chrony/tasks/main.yml30
1 files changed, 30 insertions, 0 deletions
diff --git a/roles/chrony/tasks/main.yml b/roles/chrony/tasks/main.yml
new file mode 100644
index 000000000..fae6d8e4c
--- /dev/null
+++ b/roles/chrony/tasks/main.yml
@@ -0,0 +1,30 @@
+---
+- name: remove ntp package
+ yum:
+ name: ntp
+ state: absent
+
+- name: ensure chrony package is installed
+ yum:
+ name: chrony
+ state: installed
+
+- name: Install /etc/chrony.conf
+ template:
+ src: chrony.conf.j2
+ dest: /etc/chrony.conf
+ owner: root
+ group: root
+ mode: 0644
+ notify:
+ - Restart chronyd
+
+- name: enabled timedatectl set-ntp yes
+ timedatectl:
+ ntp: True
+
+- name:
+ service:
+ name: chronyd
+ state: started
+ enabled: yes