Bug fix for chrony 37/51837/2
authorYifei Xue <xueyifei@huawei.com>
Wed, 7 Feb 2018 10:15:02 +0000 (18:15 +0800)
committerYifei Xue <xueyifei@huawei.com>
Sat, 24 Feb 2018 02:30:40 +0000 (10:30 +0800)
JIRA: -

OSA doesn't install chrony on compute nodes. This patch is
proposed to install chrony on compute nodes.

Change-Id: If2564f331e47beb97ef7e98e42cb4f848c28ba7f
Signed-off-by: Yifei Xue <xueyifei@huawei.com>
deploy/adapters/ansible/roles/post-osa/tasks/Ubuntu.yml

index 5d53d23..0c3a6d1 100755 (executable)
@@ -1,4 +1,20 @@
 ---
+- name: stop ntp service
+  service: name=ntp state=stopped enabled=no
+
+- name: remove ntp
+  apt:
+    name: "ntp"
+    state: absent
+
+- name: install chrony
+  apt:
+    name: "chrony"
+    state: present
+
+- name: restart chrony
+  service: name=chrony state=restarted
+
 - name: remove bridge ubuntu
   template:
     src: compute.j2